-
Notifications
You must be signed in to change notification settings - Fork 861
[EuiProvider][EuiThemeProvider] highContrastMode set up and documentation
#8142
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
Merged
cee-chen
merged 13 commits into
elastic:high-contrast-mode
from
cee-chen:high-contrast-mode-1
Nov 21, 2024
Merged
Changes from all commits
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
947e8b9
[setup] Make the system provider util more generic in preparation for…
cee-chen 9e9db56
Implement system detection of high contrast mode
cee-chen 791d3e7
Modify border color when in `highContrastMode`
cee-chen 74e3a1d
Update shadow mixins to detect high contrast mode
cee-chen 6d1517b
[Storybook] Add VRT snapshots for dark + high contrast mode
cee-chen 3a79f92
[docs] Add `highContrastMode` documentation
cee-chen 3548de0
[docs] Spike out contrast switchers
cee-chen a469625
[src-docs continued] refactor `locale` out from redux and store it in…
cee-chen 0acff84
changelog
cee-chen f8b0906
Update PR template checklist to include browser QAing high contrast m…
cee-chen 32b3b9c
[PR feedback] Docs copy/typos
cee-chen 50c8b1f
[PR feedback] Easier true/false/undefined testing via Storybook
cee-chen 1e79385
[refactor] Move high contrast `modify` overrides to separate hook in …
cee-chen File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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
+90 Bytes
(100%)
...s/eui/.loki/reference/chrome_desktop_Theming_EuiProvider_Font_Default_Units.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
+16.4 KB
packages/eui/.loki/reference/chrome_desktop_Theming_EuiProvider_Playground.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
+8.02 KB
...ages/eui/.loki/reference/chrome_desktop_Theming_EuiProvider_System_Defaults.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
-189 Bytes
(98%)
...loki/reference/chrome_desktop_Theming_EuiThemeProvider_CSS_Variables_Global.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
-231 Bytes
(98%)
...oki/reference/chrome_desktop_Theming_EuiThemeProvider_CSS_Variables_Nearest.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.4 KB
packages/eui/.loki/reference/chrome_desktop_Theming_EuiThemeProvider_Dark_Mode.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
+3.18 KB
.../.loki/reference/chrome_desktop_Theming_EuiThemeProvider_High_Contrast_Mode.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 removed
BIN
-3.69 KB
...oki/reference/chrome_desktop_Theming_EuiThemeProvider_Wrapper_Clone_Element.png
Binary file not shown.
Binary file modified
BIN
-636 Bytes
(96%)
...es/eui/.loki/reference/chrome_mobile_Theming_EuiProvider_Font_Default_Units.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
+47.6 KB
packages/eui/.loki/reference/chrome_mobile_Theming_EuiProvider_Playground.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
+21.8 KB
packages/eui/.loki/reference/chrome_mobile_Theming_EuiProvider_System_Defaults.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
-2.34 KB
(94%)
....loki/reference/chrome_mobile_Theming_EuiThemeProvider_CSS_Variables_Global.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
-2.46 KB
(93%)
...loki/reference/chrome_mobile_Theming_EuiThemeProvider_CSS_Variables_Nearest.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.79 KB
packages/eui/.loki/reference/chrome_mobile_Theming_EuiThemeProvider_Dark_Mode.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
+6.4 KB
...i/.loki/reference/chrome_mobile_Theming_EuiThemeProvider_High_Contrast_Mode.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 removed
BIN
-9.11 KB
...loki/reference/chrome_mobile_Theming_EuiThemeProvider_Wrapper_Clone_Element.png
Binary file not shown.
This file contains hidden or 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 hidden or 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 hidden or 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,3 @@ | ||
| - Updated `EuiProvider` `and `EuiThemeProvider` with a new `highContrastMode` | ||
| - This prop allows toggling a higher contrast visual style that primarily affects borders and shadows | ||
| - On `EuiProvider`, if the `highContrastMode` prop is not passed, this setting will inherit from the user's OS/system light/dark mode setting |
This file contains hidden or 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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
40 changes: 0 additions & 40 deletions
40
packages/eui/src-docs/src/components/guide_locale_selector/guide_locale_selector.js
This file was deleted.
Oops, something went wrong.
1 change: 0 additions & 1 deletion
1
packages/eui/src-docs/src/components/guide_locale_selector/index.js
This file was deleted.
Oops, something went wrong.
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 |
|---|---|---|
| @@ -1,2 +1,6 @@ | ||
| export { ThemeProvider, ThemeContext } from './theme_context'; | ||
| export { | ||
| ThemeProvider, | ||
| ThemeContext, | ||
| type ThemeContextType, | ||
| } from './theme_context'; | ||
| export { LanguageSelector } from './language_selector'; |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.