fix switch + tooltip behavior (#793)

This commit is contained in:
Cory LaViska
2025-03-12 14:22:23 -04:00
committed by GitHub
parent d12b97b0b0
commit 1283a696a5
2 changed files with 2 additions and 0 deletions

View File

@@ -25,6 +25,7 @@ During the alpha period, things might break! We take breaking changes very serio
- Added a `pink` scale to all color palettes
- Tweaked hues of all color palettes to make them more distinct and make their hues more intentional
- Dropped `violet` and `teal`, instead using `purple` and `cyan` (this is not just a renaming, the colors have been adjusted too).
- Fixed a bug in `<wa-switch>` that caused tooltips to work incorrectly when toggling the switch
### Design Tokens

View File

@@ -49,6 +49,7 @@ import styles from './switch.css';
*/
@customElement('wa-switch')
export default class WaSwitch extends WebAwesomeFormAssociatedElement {
static shadowRootOptions = { ...WebAwesomeFormAssociatedElement.shadowRootOptions, delegatesFocus: true };
static shadowStyle = [formControlStyles, sizeStyles, styles];
static get validators() {