Skip to content

Commit 0b5923a

Browse files
committed
Update fixtures
1 parent 67c7411 commit 0b5923a

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
@@ -60,6 +60,16 @@
6060
text-decoration: none;
6161
}
6262

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

0 commit comments

Comments
 (0)