Skip to content

Commit

Permalink
Update button background color to ensure storybook examples meet cont…
Browse files Browse the repository at this point in the history
…rast (#4529)

* Update background color

* Adjust color

* docs: update docs with protip about labels

* * Adjust background color, remove difficult-to-maintain example

* test(vrt): update snapshots

---------

Co-authored-by: khiga8 <[email protected]>
  • Loading branch information
khiga8 and khiga8 authored Apr 25, 2024
1 parent 8b4d838 commit abeef0b
Show file tree
Hide file tree
Showing 7 changed files with 6 additions and 6 deletions.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions contributor-docs/testing.md
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,9 @@ available, check out the table below.
> However, screenshots will not match and new ones will need to be generated on
> your first test run.
> [!TIP]
> To re-generate snapshots within your pull request, add the `update snapshots` label.
### Prerequisites

To run Playwright locally, first install the dependencies of the project by
Expand Down
9 changes: 3 additions & 6 deletions packages/react/src/Button/Button.dev.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -53,20 +53,17 @@ export const TestSxProp = () => {
},
[`@media screen and (max-width: 768px)`]: {
color: 'maroon',
},
'@media screen and (min-width: 768px)': {
':focus': {
color: 'green',
},
backgroundColor: '#F6F8FA',
},
'@media (min-width: 1440)': {
color: 'firebrick',
backgroundColor: '#F6F8FA',
},
}}
>
Red
</Button>
<Button variant="invisible" sx={{color: 'firebrick'}}>
<Button variant="invisible" sx={{color: 'firebrick', backgroundColor: '#F6F8FA'}}>
Invariant color overridden
</Button>
<Button leadingVisual={IssueClosedIcon} sx={{color: 'done.fg'}}>
Expand Down

0 comments on commit abeef0b

Please sign in to comment.