Skip to content

Commit

Permalink
docs(theming): replace charcoal variable with background since the pr…
Browse files Browse the repository at this point in the history
…operty name is background (#3678)
  • Loading branch information
kgsatish authored Jun 3, 2024
1 parent 60443e2 commit acb64f0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/theming/css-variables.md
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ The value of a CSS variable can be read in JavaScript using [getPropertyValue()]

```js
const el = document.querySelector('.fancy-button');
const color = el.style.getPropertyValue('--charcoal');
const color = el.style.getPropertyValue('--background');
```

## Ionic Variables
Expand Down

0 comments on commit acb64f0

Please sign in to comment.