-
Notifications
You must be signed in to change notification settings - Fork 77
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(panel): tweak focusable content area #10141
fix(panel): tweak focusable content area #10141
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🎉
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
expect(calcitePanelClose).toHaveReceivedEventTimes(1); | ||
}); | ||
|
||
it("should not close when Escape key is prevented and closable is true", async () => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@driskull Due to the contents of scrollingContentHtml
, this test is only covered under the scrolling use case.
We could add coverage for this test for both scrolling and non-scrolling content by adding focusable elements to the content. Does that approach make sense? If so, would we want to keep scrolling content and non-scrolling content as the main test groups or do we need an additional group to cover scrolling with and without interactive content?
For posterity, after some extensive troubleshooting, it turns out that not having a set width/height was affecting |
**Related Issue:** #10022 ## Summary Updates `panel` to have a single focusable container when it has scrolling content. ### Noteworthy changes * Improves test coverage for both scrolling and non-scrolling content. * Updates `disabled` test helper to clear focus targets between tab and click tests
**Related Issue:** #10022 ## Summary Updates `panel` to have a single focusable container when it has scrolling content. ### Noteworthy changes * Improves test coverage for both scrolling and non-scrolling content. * Updates `disabled` test helper to clear focus targets between tab and click tests
🤖 I have created a release *beep* *boop* --- <details><summary>@esri/calcite-components: 2.12.1</summary> ## [2.12.1](https://github.com/Esri/calcite-design-system/compare/@esri/[email protected]...@esri/[email protected]) (2024-09-04) ### Bug Fixes * **loader:** Restore animation ([#10184](#10184)) ([52081ca](52081ca)) * **panel:** Tweak focusable content area ([#10141](#10141)) ([fa18b70](fa18b70)) </details> <details><summary>@esri/calcite-components-angular: 2.12.1</summary> ## [2.12.1](https://github.com/Esri/calcite-design-system/compare/@esri/[email protected]...@esri/[email protected]) (2024-09-04) ### Miscellaneous Chores * **@esri/calcite-components-angular:** Synchronize components versions ### Dependencies * The following workspace dependencies were updated * dependencies * @esri/calcite-components bumped from 2.12.0 to 2.12.1 </details> <details><summary>@esri/calcite-components-react: 2.12.1</summary> ## [2.12.1](https://github.com/Esri/calcite-design-system/compare/@esri/[email protected]...@esri/[email protected]) (2024-09-04) ### Miscellaneous Chores * **@esri/calcite-components-react:** Synchronize components versions ### Dependencies * The following workspace dependencies were updated * dependencies * @esri/calcite-components bumped from 2.12.0 to 2.12.1 </details> --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). --------- Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
🤖 I have created a release *beep* *boop* --- <details><summary>@esri/calcite-components: 2.12.1</summary> [2.12.1](https://github.com/Esri/calcite-design-system/compare/@esri/[email protected]...@esri/[email protected]) (2024-09-04) * **loader:** Restore animation ([#10184](#10184)) ([52081ca](52081ca)) * **panel:** Tweak focusable content area ([#10141](#10141)) ([fa18b70](fa18b70)) </details> <details><summary>@esri/calcite-components-angular: 2.12.1</summary> [2.12.1](https://github.com/Esri/calcite-design-system/compare/@esri/[email protected]...@esri/[email protected]) (2024-09-04) * **@esri/calcite-components-angular:** Synchronize components versions * The following workspace dependencies were updated * dependencies * @esri/calcite-components bumped from 2.12.0 to 2.12.1 </details> <details><summary>@esri/calcite-components-react: 2.12.1</summary> [2.12.1](https://github.com/Esri/calcite-design-system/compare/@esri/[email protected]...@esri/[email protected]) (2024-09-04) * **@esri/calcite-components-react:** Synchronize components versions * The following workspace dependencies were updated * dependencies * @esri/calcite-components bumped from 2.12.0 to 2.12.1 </details> --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). --------- Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
🤖 I have created a release *beep* *boop* --- <details><summary>@esri/calcite-components: 2.12.1</summary> [2.12.1](https://github.com/Esri/calcite-design-system/compare/@esri/[email protected]...@esri/[email protected]) (2024-09-04) * **loader:** Restore animation ([#10184](#10184)) ([52081ca](52081ca)) * **panel:** Tweak focusable content area ([#10141](#10141)) ([fa18b70](fa18b70)) </details> <details><summary>@esri/calcite-components-angular: 2.12.1</summary> [2.12.1](https://github.com/Esri/calcite-design-system/compare/@esri/[email protected]...@esri/[email protected]) (2024-09-04) * **@esri/calcite-components-angular:** Synchronize components versions * The following workspace dependencies were updated * dependencies * @esri/calcite-components bumped from 2.12.0 to 2.12.1 </details> <details><summary>@esri/calcite-components-react: 2.12.1</summary> [2.12.1](https://github.com/Esri/calcite-design-system/compare/@esri/[email protected]...@esri/[email protected]) (2024-09-04) * **@esri/calcite-components-react:** Synchronize components versions * The following workspace dependencies were updated * dependencies * @esri/calcite-components bumped from 2.12.0 to 2.12.1 </details> --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
… align with browsers (#10242) **Related Issue:** #10238 ## Summary Fixes a regression caused by #10141 where clicks on scrollers would show the focus outline. ### Notes * this behavior aligns with Chrome/Firefox's latest default focus on scrolling content behavior * `:focus-visible` [isn’t supported in Safari 15.0 - 15.3](https://caniuse.com/?search=focus-visible), but given Safari 18 is expected this year, this is a minor visual inconsistency for unsupported versions. * cleans up focus styles that should have been updated by #10141. * no tests were added as we currently don't cover interactive focus-related styling
… align with browsers (#10242) **Related Issue:** #10238 ## Summary Fixes a regression caused by #10141 where clicks on scrollers would show the focus outline. ### Notes * this behavior aligns with Chrome/Firefox's latest default focus on scrolling content behavior * `:focus-visible` [isn’t supported in Safari 15.0 - 15.3](https://caniuse.com/?search=focus-visible), but given Safari 18 is expected this year, this is a minor visual inconsistency for unsupported versions. * cleans up focus styles that should have been updated by #10141. * no tests were added as we currently don't cover interactive focus-related styling
… align with browsers (#10242) **Related Issue:** #10238 ## Summary Fixes a regression caused by #10141 where clicks on scrollers would show the focus outline. ### Notes * this behavior aligns with Chrome/Firefox's latest default focus on scrolling content behavior * `:focus-visible` [isn’t supported in Safari 15.0 - 15.3](https://caniuse.com/?search=focus-visible), but given Safari 18 is expected this year, this is a minor visual inconsistency for unsupported versions. * cleans up focus styles that should have been updated by #10141. * no tests were added as we currently don't cover interactive focus-related styling
Related Issue: #10022
Summary
Updates
panel
to have a single focusable container when it has scrolling content.Noteworthy changes
disabled
test helper to clear focus targets between tab and click tests