Skip to content

Commit 65ea179

Browse files
committed
Update fixtures
1 parent de6405f commit 65ea179

File tree

5 files changed

+1773
-777
lines changed

5 files changed

+1773
-777
lines changed

.storybook/helpers.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,12 @@ function capitalizeFirstLetter(string) {
1313

1414
export const generateLabel = (items) => capitalizeFirstLetter(items.join(' '));
1515

16-
export const generateButtonLabel = ({
16+
export const generateButtonLabel = (
1717
shapeVariant = [],
1818
colorVariant = [],
1919
disabled = false,
2020
pressed = false,
21-
}) =>
21+
) =>
2222
capitalizeFirstLetter(
2323
[
2424
shapeVariant.length === 0 ? 'default' : shapeVariant.join(' '),

scss/bitstyles/atoms/button/Button.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { generateLabel } from '../../../../.storybook/helpers';
1+
import { generateButtonLabel } from '../../../../.storybook/helpers';
22

33
export default ({
44
children,
@@ -16,7 +16,7 @@ export default ({
1616
const button = document.createElement(element);
1717
button.innerHTML =
1818
children ||
19-
generateLabel(
19+
generateButtonLabel(
2020
shapeVariant,
2121
colorVariant,
2222
disabled || ariaDisabled,

scss/bitstyles/atoms/button/_index.scss

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,16 @@
6161
text-decoration: none;
6262
}
6363

64+
&:active {
65+
z-index: 1;
66+
border-color: var(#{custom-property.get($items: ('button', 'active', 'border-color'))});
67+
outline-width: 0;
68+
background-color: var(#{custom-property.get($items: ('button', 'active', 'background-color'))});
69+
box-shadow: var(#{custom-property.get($items: ('button', 'active', 'box-shadow'))});
70+
color: var(#{custom-property.get($items: ('button', 'active', 'color'))});
71+
text-decoration: none;
72+
}
73+
6474
&:focus-visible {
6575
z-index: 3;
6676
outline: focus.$outline-color solid focus.$outline-width;

0 commit comments

Comments
 (0)