From f906b07d98235d84bbe8e262c6c912a35a9eaff9 Mon Sep 17 00:00:00 2001 From: Cory LaViska Date: Fri, 24 Oct 2025 09:28:25 -0400 Subject: [PATCH] add focus delegation; fixes #1622 (#1651) --- packages/webawesome/docs/docs/resources/changelog.md | 5 +++-- packages/webawesome/src/components/button/button.ts | 1 + 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/packages/webawesome/docs/docs/resources/changelog.md b/packages/webawesome/docs/docs/resources/changelog.md index 102e640f9..39928e91f 100644 --- a/packages/webawesome/docs/docs/resources/changelog.md +++ b/packages/webawesome/docs/docs/resources/changelog.md @@ -24,6 +24,8 @@ Components with the Experimental badge sh - Added the Kazakh translation [pr:1496] - Added docs for code completion for VS Code and JetBrains [pr:1550] - Added back the missing `form-control-label` part to `` for consistency with other form controls [pr:1533] +- Added focus delegation to `` to ensure tabbing works properly when using `tabindex` [issue:1622] +- Added [text utilities](/docs/utilities/text/) for longform text, form control text, font sizes, font weights, text color, and truncation [pr:1602] - Fixed a bug in `` where slotted badges weren't properly positioned in buttons with an `href` [issue:1377] - Fixed focus outline styles in `` and native `
` [issue:1456] - Fixed focus outline styles in ``, ``, and `` [issue:1484] @@ -37,9 +39,8 @@ Components with the Experimental badge sh - Fixed a bug that caused the required `*` in form labels to have incorrect spacing in `` and `` [issue:1472] - Fixed a bug in `` and `` that caused the component to prematurely hide when certain child elements are used [pr:1636] - Improved autofill styles in `` so they span the entire width of the visual input [issue:1439] -- Modified `` to only show the tooltip on the handle being dragged when in range mode [issue:1320] - Improved [text utilities](/docs/utilities/text/) so that each size modifier always exactly matches the applied font size [pr:1602] -- Added [text utilities](/docs/utilities/text/) for longform text, form control text, font sizes, font weights, text color, and truncation [pr:1602] +- Modified `` to only show the tooltip on the handle being dragged when in range mode [issue:1320] - Upgraded `` from _experimental_ to _stable_ ## 3.0.0-beta.6 diff --git a/packages/webawesome/src/components/button/button.ts b/packages/webawesome/src/components/button/button.ts index ac1c84c39..6c1225559 100644 --- a/packages/webawesome/src/components/button/button.ts +++ b/packages/webawesome/src/components/button/button.ts @@ -41,6 +41,7 @@ import styles from './button.css'; */ @customElement('wa-button') export default class WaButton extends WebAwesomeFormAssociatedElement { + static shadowRootOptions = { ...WebAwesomeFormAssociatedElement.shadowRootOptions, delegatesFocus: true }; static css = [styles, variantStyles, sizeStyles]; static get validators() {