Skip to content

Commit

Permalink
fix spacing; #1540 (#1544)
Browse files Browse the repository at this point in the history
  • Loading branch information
claviska authored Aug 28, 2023
1 parent 1867603 commit ab770c5
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
4 changes: 4 additions & 0 deletions docs/pages/resources/changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ Components with the <sl-badge variant="warning" pill>Experimental</sl-badge> bad

New versions of Shoelace are released as-needed and generally occur when a critical mass of changes have accumulated. At any time, you can see what's coming in the next release by visiting [next.shoelace.style](https://next.shoelace.style).

## Next

- Fixed a bug in `<sl-switch>` that resulted in improper spacing between the label and the required asterisk [#1540]

## 2.8.0

- Added `--isolatedModules` and `--verbatimModuleSyntax` to `tsconfig.json`. For anyone directly importing event types, they no longer provide a default export due to these options being enabled. For people using the `events/event.js` file directly, there is no change.
Expand Down
4 changes: 3 additions & 1 deletion src/components/switch/switch.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,9 @@ export default class SlSwitch extends ShoelaceElement implements ShoelaceFormCon
<span part="thumb" class="switch__thumb"></span>
</span>
<slot part="label" class="switch__label"></slot>
<div part="label" class="switch__label">
<slot></slot>
</div>
</label>
`;
}
Expand Down

0 comments on commit ab770c5

Please sign in to comment.