Skip to content
This repository was archived by the owner on Oct 21, 2020. It is now read-only.

Commit 44a0ffe

Browse files
committed
Button: change CSS prop background-color -> background
1 parent 313ddaa commit 44a0ffe

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/components/Button/Button.svelte

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545

4646
<style>
4747
.button {
48-
background-color: var(--Button-bg-color, var(--green_4));
48+
background: var(--Button-bg, var(--green_4));
4949
color: var(--Button-color, var(--white));
5050
border: var(--Button-border, none);
5151
border-radius: var(--Button-radius, 3px);
@@ -75,29 +75,29 @@
7575
7676
.button:focus {
7777
outline: none;
78-
background-color: var(--Button-focus-bg-color, var(--green_5));
78+
background: var(--Button-focus-bg, var(--green_5));
7979
}
8080
8181
.button.isActive {
8282
pointer-events: none;
8383
}
8484
8585
.button:hover {
86-
background-color: var(--Button-hover-bg-color, var(--green_5));
86+
background: var(--Button-hover-bg, var(--green_5));
8787
}
8888
8989
.button:active {
90-
background-color: var(--Button-active-bg-color, var(--green_6));
90+
background: var(--Button-active-bg, var(--green_6));
9191
}
9292
9393
.button.isOutlined {
94-
background-color: var(--Button-outlined-bg-color, var(--white));
94+
background: var(--Button-outlined-bg, var(--white));
9595
border: var(--Button-outlined-border, 1px solid var(--green_4));
9696
color: var(--Button-outlined-color, var(--green_4));
9797
}
9898
9999
.button.isSelected {
100-
background-color: var(--Button-selected-bg-color, var(--green_6));
100+
background: var(--Button-selected-bg, var(--green_6));
101101
}
102102
103103
.button.isOutlined:active {

0 commit comments

Comments
 (0)