← All proposals

Badge

An extension of the PDS Badge: one new prop, as ('span' | 'kbd', default 'span').

Extends a PDS componentOpen in Storybook

proposals/Badge/badge.css10 lines · View on GitHub
/*
 * Only what this proposal adds. The package's own Badge CSS is loaded
 * alongside and styles everything else.
 */

/* A `kbd` badge would otherwise take the browser's monospace font. */
kbd.pds-badge {
	font-family: inherit;
}