Docs: updated emotion's cx link (#66180)

updates emotion's cx link
pull/66266/head
Khushi Jain 2 years ago committed by GitHub
parent e9b15eff72
commit c178cbc4dc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      contribute/style-guides/styling.md

@ -34,7 +34,7 @@ const getStyles = (theme: GrafanaTheme2) =>
### Styling complex components ### Styling complex components
In more complex cases, especially when you need to style multiple DOM elements in one component, or when using styles that depend on properties and/or state you In more complex cases, especially when you need to style multiple DOM elements in one component, or when using styles that depend on properties and/or state you
can have your getStyles function return an object with many class names and use [Emotion's `cx` function](https://emotion.sh/docs/emotion#cx) to compose them. can have your getStyles function return an object with many class names and use [Emotion's `cx` function](https://emotion.sh/docs/@emotion/css#cx) to compose them.
Let's say you need to style a component that has a different background depending on the `isActive` property : Let's say you need to style a component that has a different background depending on the `isActive` property :

Loading…
Cancel
Save