mirror of
https://github.com/shoelace-style/shoelace.git
synced 2026-01-12 11:09:13 +00:00
Remove text from badge types
This commit is contained in:
@@ -21,6 +21,7 @@ _During the beta period, these restrictions may be relaxed in the event of a mis
|
||||
- Fixed a bug in `sl-color-picker` where the toggle button was smaller than the preview button in Safari
|
||||
- Fixed a bug in `sl-tab-group` where activating a nested tab group didn't work properly [#299](https://github.com/shoelace-style/shoelace/issues/299)
|
||||
- Fixed a bug in `sl-alert`, `sl-dialog`, `sl-drawer`, `sl-select`, and `sl-tag` where the close button's base wasn't exported so it couldn't be styled
|
||||
- Removed `text` type from `sl-badge` as it was erroneously copied and never had styles
|
||||
- Updated `sl-tab-group` so the `active` prop is reflected to the attribute
|
||||
- Updated the docs to show dependencies instead of dependents which is much more useful when working with the custom elements bundle
|
||||
- Updated to Bootstrap Icons 1.3.0
|
||||
|
||||
@@ -18,7 +18,7 @@ export class Badge {
|
||||
badge: HTMLElement;
|
||||
|
||||
/** The badge's type. */
|
||||
@Prop() type: 'primary' | 'success' | 'info' | 'warning' | 'danger' | 'text' = 'primary';
|
||||
@Prop() type: 'primary' | 'success' | 'info' | 'warning' | 'danger' = 'primary';
|
||||
|
||||
/** Set to true to draw a pill-style badge with rounded edges. */
|
||||
@Prop() pill = false;
|
||||
@@ -40,7 +40,6 @@ export class Badge {
|
||||
'badge--info': this.type === 'info',
|
||||
'badge--warning': this.type === 'warning',
|
||||
'badge--danger': this.type === 'danger',
|
||||
'badge--text': this.type === 'text',
|
||||
'badge--pill': this.pill,
|
||||
'badge--pulse': this.pulse
|
||||
}}
|
||||
|
||||
Reference in New Issue
Block a user