Merge pull request #5851 from BenJamesBen/typos-create-snippet
fix(markdown): Typos in Creating a New Snippet howto
This commit is contained in:
commit
a8d5fe5373
1 changed files with 4 additions and 4 deletions
|
@ -71,19 +71,19 @@ and load the snippet into the defs section of our SVG document:
|
||||||
|
|
||||||
## Styling snippets
|
## Styling snippets
|
||||||
|
|
||||||
Styling snippets is something that can frustrating if you are not familiar with
|
Styling snippets is something that can be frustrating if you are not familiar with
|
||||||
how they are rendered under the hood. The SVG `use` tag creates a so-called
|
how they are rendered under the hood. The SVG `use` tag creates a so-called
|
||||||
*showdow-dom* and styles will behave something different in that shadowy realm.
|
*shadow-dom*, and styles will behave something different in that shadowy realm.
|
||||||
|
|
||||||
For example, you can't just slap [one of our CSS classes](/reference/css) on it
|
For example, you can't just slap [one of our CSS classes](/reference/css) on it
|
||||||
and call it a day, that won't be enough.
|
and call it a day, that won't be enough.
|
||||||
|
|
||||||
You can of course provide inline styles, but now your snippet can't be themed
|
You can of course provide inline styles, but now your snippet can't be themed
|
||||||
which is a big nono for sites like FreeSewing.org that let users pick differnt
|
which is a big no-no for sites like FreeSewing.org that let users pick different
|
||||||
themes.
|
themes.
|
||||||
|
|
||||||
As you can see in the example, we used CSS vars, as these do work well in the
|
As you can see in the example, we used CSS vars, as these do work well in the
|
||||||
shadow-dom and suppor themeing. You don't have to follow this approach, but we
|
shadow-dom and support theming. You don't have to follow this approach, but we
|
||||||
do recommend it.
|
do recommend it.
|
||||||
|
|
||||||
## Supporting scale
|
## Supporting scale
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue