-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(Button, Theme): style on dark background (#3339)
Added a property to the theme context that can be used to tell components that they are on a dark background. This will let us create styling for components that can't be used on dark background today. * Added Theme context prop `darkBackground` * Added `Theme.Provider` wrapper to easily define theme context areas without changing DOM * Added styling for sbanken buttons on dark background
- Loading branch information
Showing
54 changed files
with
141 additions
and
27 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
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
Binary file modified
BIN
+203 Bytes
(100%)
...snapshots__/button-for-eiendom-error-primary-have-to-match-focus-state.snap.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+177 Bytes
(100%)
...apshots__/button-for-eiendom-error-secondary-have-to-match-focus-state.snap.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+77 Bytes
(100%)
...apshots__/button-for-eiendom-error-secondary-have-to-match-hover-state.snap.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+11 Bytes
(100%)
...__/button-for-eiendom-icon-have-to-match-icon-button-with-active-state.snap.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-192 Bytes
(87%)
...s__/button-for-eiendom-icon-have-to-match-icon-button-with-focus-state.snap.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-223 Bytes
(87%)
...s__/button-for-eiendom-icon-have-to-match-icon-button-with-hover-state.snap.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+184 Bytes
(100%)
...image_snapshots__/button-for-eiendom-primary-have-to-match-focus-state.snap.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+182 Bytes
(100%)
...age_snapshots__/button-for-eiendom-secondary-have-to-match-focus-state.snap.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+81 Bytes
(100%)
...age_snapshots__/button-for-eiendom-secondary-have-to-match-hover-state.snap.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+118 Bytes
(100%)
...mage_snapshots__/button-for-eiendom-tertiary-have-to-match-focus-state.snap.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-11 Bytes
(100%)
...mage_snapshots__/button-for-eiendom-tertiary-have-to-match-hover-state.snap.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+21 Bytes
(100%)
...napshots__/button-for-sbanken-error-primary-have-to-match-active-state.snap.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+370 Bytes
(110%)
...snapshots__/button-for-sbanken-error-primary-have-to-match-focus-state.snap.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+373 Bytes
(110%)
...apshots__/button-for-sbanken-error-secondary-have-to-match-focus-state.snap.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-120 Bytes
(97%)
...napshots__/button-for-sbanken-have-to-match-tertiary-icon-button-focus.snap.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-10 Bytes
(100%)
...s__/button-for-sbanken-icon-have-to-match-icon-button-with-focus-state.snap.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+4.38 KB
...image_snapshots__/button-for-sbanken-on-dark-background-primary-active.snap.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+4.39 KB
...mage_snapshots__/button-for-sbanken-on-dark-background-primary-default.snap.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+4.67 KB
..._image_snapshots__/button-for-sbanken-on-dark-background-primary-focus.snap.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+4.36 KB
..._image_snapshots__/button-for-sbanken-on-dark-background-primary-hover.snap.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+4.48 KB
...age_snapshots__/button-for-sbanken-on-dark-background-secondary-active.snap.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+4.45 KB
...ge_snapshots__/button-for-sbanken-on-dark-background-secondary-default.snap.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+5.24 KB
...mage_snapshots__/button-for-sbanken-on-dark-background-secondary-focus.snap.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+4.5 KB
...mage_snapshots__/button-for-sbanken-on-dark-background-secondary-hover.snap.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+2.57 KB
...mage_snapshots__/button-for-sbanken-on-dark-background-tertiary-active.snap.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+2.57 KB
...age_snapshots__/button-for-sbanken-on-dark-background-tertiary-default.snap.png
Oops, something went wrong.
Binary file added
BIN
+4.43 KB
...image_snapshots__/button-for-sbanken-on-dark-background-tertiary-focus.snap.png
Oops, something went wrong.
Binary file added
BIN
+2.63 KB
...image_snapshots__/button-for-sbanken-on-dark-background-tertiary-hover.snap.png
Oops, something went wrong.
Binary file modified
BIN
+352 Bytes
(110%)
...image_snapshots__/button-for-sbanken-primary-have-to-match-focus-state.snap.png
Oops, something went wrong.
Binary file modified
BIN
+195 Bytes
(100%)
...image_snapshots__/button-for-sbanken-primary-have-to-match-hover-state.snap.png
Oops, something went wrong.
Binary file modified
BIN
+316 Bytes
(100%)
...age_snapshots__/button-for-sbanken-secondary-have-to-match-focus-state.snap.png
Oops, something went wrong.
Binary file modified
BIN
+241 Bytes
(100%)
...mage_snapshots__/button-for-sbanken-tertiary-have-to-match-focus-state.snap.png
Oops, something went wrong.
Binary file modified
BIN
+3 Bytes
(100%)
...mage_snapshots__/button-for-sbanken-tertiary-have-to-match-hover-state.snap.png
Oops, something went wrong.
Binary file modified
BIN
+203 Bytes
(100%)
...mage_snapshots__/button-for-ui-error-primary-have-to-match-focus-state.snap.png
Oops, something went wrong.
Binary file modified
BIN
+51 Bytes
(100%)
...mage_snapshots__/button-for-ui-error-primary-have-to-match-hover-state.snap.png
Oops, something went wrong.
Binary file modified
BIN
+177 Bytes
(100%)
...ge_snapshots__/button-for-ui-error-secondary-have-to-match-focus-state.snap.png
Oops, something went wrong.
Binary file modified
BIN
+77 Bytes
(100%)
...ge_snapshots__/button-for-ui-error-secondary-have-to-match-hover-state.snap.png
Oops, something went wrong.
Binary file modified
BIN
+79 Bytes
(110%)
...shots__/button-for-ui-icon-have-to-match-icon-button-with-active-state.snap.png
Oops, something went wrong.
Binary file modified
BIN
-192 Bytes
(87%)
...pshots__/button-for-ui-icon-have-to-match-icon-button-with-focus-state.snap.png
Oops, something went wrong.
Binary file modified
BIN
-223 Bytes
(87%)
...pshots__/button-for-ui-icon-have-to-match-icon-button-with-hover-state.snap.png
Oops, something went wrong.
Binary file modified
BIN
+184 Bytes
(100%)
...__/__image_snapshots__/button-for-ui-primary-have-to-match-focus-state.snap.png
Oops, something went wrong.
Binary file modified
BIN
+61 Bytes
(100%)
...__/__image_snapshots__/button-for-ui-primary-have-to-match-hover-state.snap.png
Oops, something went wrong.
Binary file modified
BIN
+182 Bytes
(100%)
.../__image_snapshots__/button-for-ui-secondary-have-to-match-focus-state.snap.png
Oops, something went wrong.
Binary file modified
BIN
+81 Bytes
(100%)
.../__image_snapshots__/button-for-ui-secondary-have-to-match-hover-state.snap.png
Oops, something went wrong.
Binary file modified
BIN
+210 Bytes
(100%)
...s__/__image_snapshots__/button-for-ui-signal-have-to-match-focus-state.snap.png
Oops, something went wrong.
Binary file modified
BIN
+208 Bytes
(100%)
..._/__image_snapshots__/button-for-ui-tertiary-have-to-match-focus-state.snap.png
Oops, something went wrong.
Binary file modified
BIN
-18 Bytes
(100%)
..._/__image_snapshots__/button-for-ui-tertiary-have-to-match-hover-state.snap.png
Oops, something went wrong.
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