From 7665675e78c9b19221dfdc6db23fc877a36f19e9 Mon Sep 17 00:00:00 2001 From: Maxim <39025497+mnik01@users.noreply.github.com> Date: Sun, 1 Sep 2024 15:05:42 +0500 Subject: [PATCH] Update README.md --- README.md | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index f959167..9d705a2 100644 --- a/README.md +++ b/README.md @@ -1,11 +1,12 @@ # Storybook Addon Render Modes -This addon adds ability to emulate user CSS rendering preferences such as `prefers-reduced-motion` and others. - +This addon adds the ability to emulate user CSS rendering preferences such as `prefers-reduced-motion` and others. +This addon has support for Storybook v8+ image > Initially fork of [storybook-addon-css-user-prefs](https://github.com/jonathantneal/storybook-addon-css-user-prefs) to support sb@^8.0.0 +> And it's also a replacement for [@jeysal/storybook-addon-css-user-preferences](https://www.npmjs.com/package/@jeysal/storybook-addon-css-user-preferences) List of supported modes: - prefers-color-scheme @@ -39,4 +40,4 @@ export default config; This addon doesnt force changing of rendering mode in browser level (seems impossible). But instead it uses hacky approach: we go through `document.styleSheets` via JS and manually rewriting media style rules. -This approach may work not as expected in some cases. Feel fre to create an issue for such cases. \ No newline at end of file +This approach may work not as expected in some cases. Feel fre to create an issue for such cases.