Skip to content

Commit

Permalink
update site docs
Browse files Browse the repository at this point in the history
  • Loading branch information
JoanaMMoreira committed May 8, 2024
1 parent 5b3dc85 commit c1997a5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion site/docs/components/country-symbol/examples.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ When importing many country symbol components at once, such as with a list, you

## CSS background image

You can also use country symbol as background image in CSS from `"@salt-ds/countries/saltCountries.css"`, then specify country code prefixed with `saltCountry-`, e.g., `saltCountry-AD`, `saltCountry-GB-SCT`.
You can also use country symbol as a background image in CSS from `"@salt-ds/countries/saltCountries.css"` or `"@salt-ds/countries/saltSharpCountries.css"`, then specify the country code prefixed with `saltCountry-` or `saltCountrySharp-`, e.g., `saltCountry-AD`, `saltCountrySharp-GB-SCT`.

</LivePreview>

Expand Down
6 changes: 5 additions & 1 deletion site/src/examples/country-symbol/CssBackgroundImage.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
import "@salt-ds/countries/saltCountries.css";
import "@salt-ds/countries/saltSharpCountries.css";

const code = "AD" as const;

export const CssBackgroundImage = () => (
<div className={`saltCountry-${code}`} />
<>
<div className={`saltCountry-${code}`} />
<div className={`saltCountrySharp-${code}`} />
</>
);

0 comments on commit c1997a5

Please sign in to comment.