You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Harris Schneiderman edited this page Jun 9, 2017
·
1 revision
Badges
What is needed?
For badges to be formatted properly there a couple necessary things.
The proper badge class ("dqpl-badge-error", "dqpl-badge-success", "dqpl.badge-warning", or "dqpl-badge-tag") which will act as the wrapping element for the icon and text within a badge.
The proper icon class on the dqpl-icon child...
for error badges: "fa fa.ban"
for success badges: "fa fa-check-circle"
for warning badges: "fa fa-warning"
for tag badges: "fa fa-tag"
The proper class on the child element with the badge's text: "dqpl-badge-text"
Example HTML
<divclass="dqpl-badge-error"><divclass="dqpl-icon fa fa-ban" aria-label="Error"></div><divclass="dqpl-badge-text">error</div></div><divclass="dqpl-badge-success"><divclass="dqpl-icon fa fa-check-circle" aria-label="Success"></div><divclass="dqpl-badge-text">complete</div></div><divclass="dqpl-badge-warning"><divclass="dqpl-icon fa fa-warning" aria-label="Warning"></div><divclass="dqpl-badge-text">warning</div></div><divclass="dqpl-badge-tag"><divclass="dqpl-icon fa fa-tag" aria-label="Tag"></div><divclass="dqpl-badge-text">a tag</div></div>