Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(ghost-solid-button): add styling #420

Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 29 additions & 0 deletions src/components/ButtonCircle/ButtonCircle.style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,35 @@
}
}

// PRIMARY SOLID GHOST
&[data-ghost='true'],
&[data-solid='true'] {
&[data-outline='false'] {
background-color: var(--mds-color-theme-button-inverted-normal);
color: var(--mds-color-theme-text-primary-normal);

&:hover,
&.hover {
background-color: var(--mds-color-theme-button-inverted-hover);
color: var(--mds-color-theme-text-primary-normal);
}

&:active,
&.active {
background-color: var(--mds-color-theme-button-inverted-pressed);
color: var(--mds-color-theme-text-primary-normal);
}

&[data-disabled='true'],
&.disable,
&[data-shallow-disabled='true'] {
background-color: var(--mds-color-theme-button-secondary-normal);
color: var(--mds-color-theme-text-primary-disabled);
cursor: auto;
}
}
}

// JOIN
&[data-color='join'] {
background-color: var(--mds-color-theme-button-join-normal);
Expand Down
4 changes: 2 additions & 2 deletions src/components/ButtonGroup/ButtonGroup.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -107,10 +107,10 @@ const callControlsCommonChildren = [
];

const paginationCommonChildren = [
<ButtonCircle solid disabled key="0" size={28}>
<ButtonCircle solid ghost disabled key="0" size={28}>
<Icon name="arrow-up" autoScale={150} />
</ButtonCircle>,
<ButtonCircle solid key="1" size={28}>
<ButtonCircle solid ghost key="1" size={28}>
<Icon name="arrow-down" autoScale={150} />
</ButtonCircle>,
];
Expand Down
29 changes: 29 additions & 0 deletions src/components/ButtonPill/ButtonPill.style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,35 @@
}
}

// PRIMARY SOLID GHOST
&[data-ghost='true'],
&[data-solid='true'] {
&[data-outline='false'] {
background-color: var(--mds-color-theme-button-inverted-normal);
color: var(--mds-color-theme-text-primary-normal);

&:hover,
&.hover {
background-color: var(--mds-color-theme-button-inverted-hover);
color: var(--mds-color-theme-text-primary-normal);
}

&:active,
&.active {
background-color: var(--mds-color-theme-button-inverted-pressed);
color: var(--mds-color-theme-text-primary-normal);
}

&[data-disabled='true'],
&.disable,
&[data-shallow-disabled='true'] {
background-color: var(--mds-color-theme-button-secondary-normal);
color: var(--mds-color-theme-text-primary-disabled);
cursor: auto;
}
}
}

// JOIN
&[data-color='join'] {
background-color: var(--mds-color-theme-button-join-normal);
Expand Down