Remove text from badge types

This commit is contained in:
Cory LaViska
2021-01-13 18:01:36 -05:00
parent 6e93498e7b
commit 7edd99bf31
2 changed files with 2 additions and 2 deletions

View File

@@ -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

View File

@@ -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
}}