You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -228,7 +228,7 @@ import {ActionButton} from '@react-spectrum/s2';
228
228
</ul>
229
229
<H3>UNSAFE Style Overrides</H3>
230
230
<P>We highly discourage overriding the styles of React Spectrum components because it may break at any time when we change our implementation, making it difficult for you to update in the future. Consider using <Linkhref="https://react-spectrum.adobe.com/react-aria/"target="_blank">React Aria Components</Link> with our <Linkhref="?path=/docs/style-macro--docs"target="_top">style macro</Link> to build a custom component with Spectrum styles instead.</P>
231
-
<P>That said, just like in React Spectrum v3, the <Code>UNSAFE_className</Code> and <Code>UNSAFE_style</Code> props are supported on Spectrum 2 components as last-resort escape hatches. However, unlike in v3, UNSAFE_classNames must be placed in a special <Code>UNSAFE_overrides</Code><Linkhref="https://developer.mozilla.org/en-US/docs/Learn/CSS/Building_blocks/Cascade_layers"target="_blank">CSS cascade layer</Link>. This guarentees that your overrides will always win over other styles on the page, no matter the order or specificity of the selector.</P>
231
+
<P>That said, just like in React Spectrum v3, the <Code>UNSAFE_className</Code> and <Code>UNSAFE_style</Code> props are supported on Spectrum 2 components as last-resort escape hatches.</P>
0 commit comments