Skip to content

Commit

Permalink
chore: note that this is "one of" the solutions not "the one"
Browse files Browse the repository at this point in the history
  • Loading branch information
ilhan007 committed Oct 24, 2024
1 parent d6e8c99 commit 97a0dbd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion docs/2-advanced/09-accessibility.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,9 +65,10 @@ For more information regarding the available themes and how to use them, see the

### Theme Selection According to OS Settings


The UI5 Web Components framework does not offer a built-in mechanism for selecting themes based on the users' OS settings. However, we recommend using standard APIs to implement OS-based theme selection in applications built with UI5 Web Components.

In the next sections, we will demonstrate one of the possible approaches to detect and apply a theme that aligns with the user's OS preferences. However, you are free to explore and develop your own detection and matching algorithm.

#### Light | Dark

To synchronize theme switching with the OS's light or dark mode, you can use the [prefers-color-scheme](https://developer.mozilla.org/en-US/docs/Web/CSS/@media/prefers-color-scheme) CSS Media feature, as shown in the next example:
Expand Down

0 comments on commit 97a0dbd

Please sign in to comment.