Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Page Actions] Remove shadow on focus states for buttons in Page Head…
…er (#10582) ### WHY are these changes introduced? Linked to Shopify/web#104248 We have noticed that the focus states for the actions in the Page Header do not match the focus states for other buttons within Polaris. They have a darker background, and an inset shadow. This should be the `:active` state, not the `:focus-visible` state. ### WHAT is this pull request doing? This PR is updating the visuals of the actions within the Page Header, namely the breadcrumbs and actions. - We set the `:focus` style to match the `:hover` style, to bring this in line with other Button components. - We include new `:focus-visible` style rules to remove the box shadow for the page actions - We change the existing `:focus` styles to `:active`, as these styles should be applied when the page actions are pressed ### How to 🎩 🖥 [Local development instructions](https://github.com/Shopify/polaris/blob/main/README.md#local-development) 🗒 [General tophatting guidelines](https://github.com/Shopify/polaris/blob/main/documentation/Tophatting.md) 📄 [Changelog guidelines](https://github.com/Shopify/polaris/blob/main/.github/CONTRIBUTING.md#changelog) Storybook: https://5d559397bae39100201eedc1-kvktrdbvcr.chromatic.com/?path=/story/all-components-page--default&globals=polarisSummerEditions2023:true ### 🎩 checklist - [x] Tested on [mobile](https://github.com/Shopify/polaris/blob/main/documentation/Tophatting.md#cross-browser-testing) - [x] Tested on [multiple browsers](https://help.shopify.com/en/manual/shopify-admin/supported-browsers) - [x] Tested for [accessibility](https://github.com/Shopify/polaris/blob/main/documentation/Accessibility%20testing.md) - [x] Updated the component's `README.md` with documentation changes - [x] [Tophatted documentation](https://github.com/Shopify/polaris/blob/main/documentation/Tophatting%20documentation.md) changes in the style guide
- Loading branch information