Skip to content

Commit

Permalink
fix(Button): ♿ Added 44px clickbound for small size (#676)
Browse files Browse the repository at this point in the history
  • Loading branch information
mimarz authored Jul 24, 2023
1 parent 0314d62 commit 921b9c7
Showing 1 changed file with 26 additions and 6 deletions.
32 changes: 26 additions & 6 deletions packages/react/src/components/Button/Button.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -6,20 +6,40 @@
--fdsc-icon-size: var(--fds-sizing-4);

composes: focusable from '../../utils/utility.module.css';
display: flex;
align-items: center;
border-radius: var(--fdsc-border-radius);
border: var(--fds-border_width-default) solid transparent;
box-sizing: border-box;
color: var(--fdsc-font-and-icon-color);
cursor: pointer;
display: flex;
fill: var(--fdsc-font-and-icon-color);
font-family: inherit;
height: var(--fdsc-button-size);
justify-content: center;
letter-spacing: var(--typography-default-letter-spacing);
padding: var(--fdsc-button-padding);
box-sizing: border-box;
cursor: pointer;
font-family: inherit;
justify-content: center;
text-align: center;
letter-spacing: var(--typography-default-letter-spacing);
text-decoration: none;
position: relative;
}

.button.small::before {
position: absolute;
top: 0;
left: 0;
width: auto;
min-height: auto;
content: '';
}

.button.small::after {
position: absolute;
top: -5px;
left: 0;
width: 100%;
height: 44px;
content: '';
}

.button:disabled,
Expand Down

0 comments on commit 921b9c7

Please sign in to comment.