forked from Shopify/polaris
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use the
Text
component to apply Button text styles (Shopify#11735)
### WHY are these changes introduced? Cleans up the button CSS by re-using the Text component styles to apply the proper `Button` typography. This PR also address some test failures: - `Button.test.tsx`: The `matchMedia` mock needed to be cleared - `TrapFocus.test.tsx`: The `Button` external element was being rendered outside of the test, avoiding the global `beforeEach`/`afterEach` test setup which mocks `matchMedia` needed by `Button`. > [!NOTE] > Depends on Shopify#11724 Related to https://github.com/Shopify/polaris-internal/issues/1483
- Loading branch information
1 parent
409c127
commit a30cc57
Showing
5 changed files
with
56 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
'@shopify/polaris': patch | ||
--- | ||
|
||
Used `Text` component to apply text styles for `Button` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters