Skip to content

Commit

Permalink
feat(global): remove is-on-background from pharos-site
Browse files Browse the repository at this point in the history
  • Loading branch information
mtorres3 committed Oct 25, 2023
1 parent e70e23b commit c704a74
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions packages/pharos-site/static/guidelines/button.docs.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -306,8 +306,8 @@ import ellipsesExample from '@images/components/button/buttons_ellipses-example.
<PageSection title="Buttons on dark background" subSectionLevel={1}>
<p>
When a button is used on a darker background (e.g., black or marble-gray-20), use the
is-on-background attribute. The four variants described above can all be used on dark
backgrounds and follow the same guidelines.
on-background attribute. The four variants described above can all be used on dark backgrounds
and follow the same guidelines.
</p>
<div
style={{
Expand All @@ -316,10 +316,10 @@ import ellipsesExample from '@images/components/button/buttons_ellipses-example.
width: '45%',
}}
>
<PharosButton name="primary-is-on-background" is-on-background>
<PharosButton name="primary-on-background" on-background>
Primary button
</PharosButton>
<PharosButton name="secondary-is-on-background" variant="secondary" is-on-background>
<PharosButton name="secondary-on-background" variant="secondary" on-background>
Secondary button
</PharosButton>
</div>
Expand Down
2 changes: 1 addition & 1 deletion packages/pharos-site/static/styles/global.scss
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ p.alert-example__content + p.alert-example__content {
margin-top: 0;
}

.checkbox-example__container--is-on-background {
.checkbox-example__container--on-background {
padding: 1rem;
background-color: var(--pharos-color-black);
}
Expand Down

0 comments on commit c704a74

Please sign in to comment.