diff --git a/docs/resources/changelog.md b/docs/resources/changelog.md index 8ba8c8ca..923553cb 100644 --- a/docs/resources/changelog.md +++ b/docs/resources/changelog.md @@ -16,6 +16,7 @@ New versions of Shoelace are released as-needed and generally occur when a criti - Fixed a bug in `` and `` that caused the browser to scroll incorrectly when focusing on a control in a container with overflow [#1169](https://github.com/shoelace-style/shoelace/issues/1169) - Fixed a bug in `` that caused the `click` event to be emitted when the item was disabled [#1113](https://github.com/shoelace-style/shoelace/issues/1113) - Fixed a bug in form controls that erroneously prevented validation states from being set when `novalidate` was used on the containing form [#1164](https://github.com/shoelace-style/shoelace/issues/1164) +- Fixed a bug in `` that caused the required asterisk to appear before the label in Chrome - Improved the behavior of `` in Safari so keyboard interaction works the same as in other browsers [#1177](https://github.com/shoelace-style/shoelace/issues/1177) - Improved the [icons](/components/icon) page so it's not as sluggish in Safari [#1122](https://github.com/shoelace-style/shoelace/issues/1122) - Improved the accessibility of `` when used in forced-colors / Windows High Contrast mode [#1114](https://github.com/shoelace-style/shoelace/issues/1114) diff --git a/src/components/checkbox/checkbox.ts b/src/components/checkbox/checkbox.ts index e645e4ab..893aa151 100644 --- a/src/components/checkbox/checkbox.ts +++ b/src/components/checkbox/checkbox.ts @@ -157,6 +157,11 @@ export default class SlCheckbox extends ShoelaceElement implements ShoelaceFormC } render() { + // + // NOTE: we use a
around the label slot because of this Chrome bug. + // + // https://bugs.chromium.org/p/chromium/issues/detail?id=1413733 + // return html` `; }