diff --git a/packages/documentation/src/Styles/DarkMode.stories.tsx b/packages/documentation/src/Styles/DarkMode.stories.tsx index 706e05ae..3e2fcb7f 100644 --- a/packages/documentation/src/Styles/DarkMode.stories.tsx +++ b/packages/documentation/src/Styles/DarkMode.stories.tsx @@ -52,12 +52,16 @@ const CommonTemplate = () => { return ( <>
- Most components support a system
mode which allows them to
- toggle from dark to light colors automatically by relying on the
+ Most components support a system
mode prop which allows
+ them to toggle from dark to light colors automatically by relying on the
prefers-color-scheme
CSS media feature. For special cases,
there is aalt-system
mode which is a toggled version of the
system
mode.
+ Additionally, some components also provide a focusMode
prop
+ that is also set to system
by default.
+
@@ -82,7 +86,9 @@ module.exports = {
All the components rendered below have their mode
sets to{" "}
- system
.
+ system
by default, except for a few ones where we force the
+ mode to be different so that the contrast with the background is
+ accessible (see the Button in the TextInput for example).