Skip to content

Commit 90b7fd1

Browse files
committed
feat(Button): expose radius and outline color
1 parent 8c3374d commit 90b7fd1

File tree

3 files changed

+14
-0
lines changed

3 files changed

+14
-0
lines changed

Diff for: components/mdc/Button/_index.scss

+10
Original file line numberDiff line numberDiff line change
@@ -1 +1,11 @@
11
@use '@material/button/styles';
2+
@use '@material/button';
3+
4+
$radius: 4px !default;
5+
6+
.mdc-button {
7+
@include button.shape-radius($radius);
8+
}
9+
.mdc-button--outlined {
10+
@include button.outline-color(var(--mdc-button-outline-color));
11+
}

Diff for: stories/_index.scss

+3
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,5 @@
11
@use './theme';
22
@use './typography';
3+
@use './components/mdc/Button' with (
4+
$radius: 16px
5+
);

Diff for: stories/_theme.scss

+1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
--mdc-required-input: gray;
99
--progress-bar-color: #005cb9;
1010
--main-content-height: unset;
11+
--mdc-button-outline-color: #00a7e1;
1112
}
1213

1314
.mdc-theme--primary-variant {

0 commit comments

Comments
 (0)