Skip to content
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, flow-item): hide focus-outline when scrolling via mouse to align with browsers #10242

Merged

Conversation

jcfranco
Copy link
Member

@jcfranco jcfranco commented Sep 6, 2024

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, 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 fix(panel): tweak focusable content area #10141.
  • no tests were added as we currently don't cover interactive focus-related styling

@github-actions github-actions bot added the bug Bug reports for broken functionality. Issues should include a reproduction of the bug. label Sep 6, 2024
@jcfranco jcfranco added the pr ready for visual snapshots Adding this label will run visual snapshot testing. label Sep 6, 2024
@jcfranco jcfranco marked this pull request as ready for review September 6, 2024 21:07
Copy link
Member

@driskull driskull left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@jcfranco jcfranco merged commit 4eb75af into dev Sep 6, 2024
19 checks passed
@jcfranco jcfranco deleted the jcfranco/10238-hide-focus-ring-on-clicked-panel-scroller branch September 6, 2024 22:03
@github-actions github-actions bot added this to the 2.12.2 patch milestone Sep 6, 2024
benelan pushed a commit that referenced this pull request Sep 9, 2024
… 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
benelan pushed a commit that referenced this pull request Sep 9, 2024
… 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
@benelan benelan mentioned this pull request Sep 9, 2024
benelan added a commit that referenced this pull request Sep 9, 2024
🤖 I have created a release *beep* *boop*
---


<details><summary>@esri/calcite-components: 2.12.2</summary>

##
[2.12.2](https://github.com/Esri/calcite-design-system/compare/@esri/calcite-components@2.12.1...@esri/calcite-components@2.12.2)
(2024-09-09)


### Bug Fixes

* **input-time-zone:** Ensure `beforeOpen`/`open` and
`beforeClose`/`close` events emit properly
([#10228](#10228))
([71423cb](71423cb))
* **panel, flow-item:** Hide focus-outline when scrolling via mouse to
align with browsers
([#10242](#10242))
([7a8cb72](7a8cb72))
* **shell:** Fix z-index of shell-panels
([#10224](#10224))
([36d51b6](36d51b6))
</details>

<details><summary>@esri/calcite-components-angular: 2.12.2</summary>

##
[2.12.2](https://github.com/Esri/calcite-design-system/compare/@esri/calcite-components-angular@2.12.1...@esri/calcite-components-angular@2.12.2)
(2024-09-09)


### Miscellaneous Chores

* **@esri/calcite-components-angular:** Synchronize components versions


### Dependencies

* The following workspace dependencies were updated
  * dependencies
    * @esri/calcite-components bumped from 2.12.1 to 2.12.2
</details>

<details><summary>@esri/calcite-components-react: 2.12.2</summary>

##
[2.12.2](https://github.com/Esri/calcite-design-system/compare/@esri/calcite-components-react@2.12.1...@esri/calcite-components-react@2.12.2)
(2024-09-09)


### Miscellaneous Chores

* **@esri/calcite-components-react:** Synchronize components versions


### Dependencies

* The following workspace dependencies were updated
  * dependencies
    * @esri/calcite-components bumped from 2.12.1 to 2.12.2
</details>

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).
benelan added a commit that referenced this pull request Sep 9, 2024
🤖 I have created a release *beep* *boop*
---

<details><summary>@esri/calcite-components: 2.12.2</summary>

[2.12.2](https://github.com/Esri/calcite-design-system/compare/@esri/calcite-components@2.12.1...@esri/calcite-components@2.12.2)
(2024-09-09)

* **input-time-zone:** Ensure `beforeOpen`/`open` and
`beforeClose`/`close` events emit properly
([#10228](#10228))
([71423cb](71423cb))
* **panel, flow-item:** Hide focus-outline when scrolling via mouse to
align with browsers
([#10242](#10242))
([7a8cb72](7a8cb72))
* **shell:** Fix z-index of shell-panels
([#10224](#10224))
([36d51b6](36d51b6))
</details>

<details><summary>@esri/calcite-components-angular: 2.12.2</summary>

[2.12.2](https://github.com/Esri/calcite-design-system/compare/@esri/calcite-components-angular@2.12.1...@esri/calcite-components-angular@2.12.2)
(2024-09-09)

* **@esri/calcite-components-angular:** Synchronize components versions

* The following workspace dependencies were updated
  * dependencies
    * @esri/calcite-components bumped from 2.12.1 to 2.12.2
</details>

<details><summary>@esri/calcite-components-react: 2.12.2</summary>

[2.12.2](https://github.com/Esri/calcite-design-system/compare/@esri/calcite-components-react@2.12.1...@esri/calcite-components-react@2.12.2)
(2024-09-09)

* **@esri/calcite-components-react:** Synchronize components versions

* The following workspace dependencies were updated
  * dependencies
    * @esri/calcite-components bumped from 2.12.1 to 2.12.2
</details>

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).
benelan added a commit that referenced this pull request Sep 9, 2024
🤖 I have created a release *beep* *boop*
---

<details><summary>@esri/calcite-components: 2.12.2</summary>


[2.12.2](https://github.com/Esri/calcite-design-system/compare/@esri/calcite-components@2.12.1...@esri/calcite-components@2.12.2)
(2024-09-09)

* **input-time-zone:** Ensure `beforeOpen`/`open` and
`beforeClose`/`close` events emit properly
([#10228](#10228))

([71423cb](71423cb))
* **panel, flow-item:** Hide focus-outline when scrolling via mouse to
align with browsers
([#10242](#10242))

([7a8cb72](7a8cb72))
* **shell:** Fix z-index of shell-panels
([#10224](#10224))

([36d51b6](36d51b6))
</details>

<details><summary>@esri/calcite-components-angular: 2.12.2</summary>


[2.12.2](https://github.com/Esri/calcite-design-system/compare/@esri/calcite-components-angular@2.12.1...@esri/calcite-components-angular@2.12.2)
(2024-09-09)

* **@esri/calcite-components-angular:** Synchronize components versions

* The following workspace dependencies were updated
  * dependencies
    * @esri/calcite-components bumped from 2.12.1 to 2.12.2
</details>

<details><summary>@esri/calcite-components-react: 2.12.2</summary>


[2.12.2](https://github.com/Esri/calcite-design-system/compare/@esri/calcite-components-react@2.12.1...@esri/calcite-components-react@2.12.2)
(2024-09-09)

* **@esri/calcite-components-react:** Synchronize components versions

* The following workspace dependencies were updated
  * dependencies
    * @esri/calcite-components bumped from 2.12.1 to 2.12.2
</details>

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See

[documentation](https://github.com/googleapis/release-please#release-please).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Bug reports for broken functionality. Issues should include a reproduction of the bug. pr ready for visual snapshots Adding this label will run visual snapshot testing.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants