|
45 | 45 | &%variant-brand-primary {
|
46 | 46 | background-color: $button-brand-primary--backgroundColor;
|
47 | 47 |
|
| 48 | + &:disabled { |
| 49 | + background-color: unquote( |
| 50 | + $button-brand-primary--backgroundColor + "40" |
| 51 | + ); |
| 52 | + } |
| 53 | + |
48 | 54 | &:not(:disabled) {
|
49 | 55 | &:hover {
|
50 | 56 | // TODO: This could probably get simplified later on e.g. via CSS variables
|
|
60 | 66 | &%variant-primary {
|
61 | 67 | background-color: $button-primary--backgroundColor;
|
62 | 68 |
|
| 69 | + &:disabled { |
| 70 | + background-color: unquote($button-primary--backgroundColor + "40"); |
| 71 | + } |
| 72 | + |
63 | 73 | &:not(:disabled) {
|
64 | 74 | &:hover {
|
65 | 75 | // TODO: This could probably get simplified later on e.g. via CSS variables
|
|
79 | 89 | border-color: $db-color-cool-gray-700;
|
80 | 90 | color: $db-color-cool-gray-700;
|
81 | 91 |
|
| 92 | + &:disabled { |
| 93 | + color: unquote($db-color-cool-gray-700 + "80"); |
| 94 | + border-color: unquote($db-color-cool-gray-700 + "40"); |
| 95 | + } |
| 96 | + |
82 | 97 | &:not(:disabled) {
|
83 | 98 | &:hover {
|
84 | 99 | // TODO: This could probably get simplified later on e.g. via CSS variables
|
85 | 100 | background-color: $button-secondaryOutline-hover-backgroundColor;
|
86 | 101 | }
|
87 | 102 | }
|
88 | 103 |
|
89 |
| - &:disabled { |
90 |
| - background-color: transparent; |
91 |
| - color: $db-color-cool-gray-700; |
92 |
| - } |
93 |
| - |
94 | 104 | &:active {
|
95 | 105 | background-color: $button-secondaryOutline-active-backgroundColor;
|
96 | 106 | }
|
|
100 | 110 | background-color: $button-secondarySolid--backgroundColor;
|
101 | 111 | color: $db-color-cool-gray-700;
|
102 | 112 |
|
| 113 | + &:disabled { |
| 114 | + color: unquote($db-color-cool-gray-700 + "80"); |
| 115 | + background-color: unquote( |
| 116 | + $button-secondarySolid--backgroundColor + "40" |
| 117 | + ); |
| 118 | + } |
| 119 | + |
103 | 120 | &:not(:disabled) {
|
104 | 121 | &:hover {
|
105 | 122 | // TODO: This could probably get simplified later on e.g. via CSS variables
|
|
117 | 134 | border: 2px solid transparent;
|
118 | 135 | color: $db-color-cool-gray-700;
|
119 | 136 |
|
| 137 | + &:disabled { |
| 138 | + color: unquote($db-color-cool-gray-700 + "80"); |
| 139 | + } |
| 140 | + |
120 | 141 | &:not(:disabled) {
|
121 | 142 | &:hover {
|
122 | 143 | // TODO: This could probably get simplified later on e.g. via CSS variables
|
123 | 144 | background-color: $button-secondaryOutline-hover-backgroundColor;
|
124 | 145 | }
|
125 | 146 | }
|
126 | 147 |
|
127 |
| - &:disabled { |
128 |
| - background-color: transparent; // shame.css |
129 |
| - } |
130 |
| - |
131 | 148 | &:active {
|
132 | 149 | background-color: $button-secondaryOutline-active-backgroundColor;
|
133 | 150 | }
|
|
197 | 214 | }
|
198 | 215 |
|
199 | 216 | &:disabled {
|
200 |
| - background-color: $db-color-cool-gray-200; |
201 |
| - color: $db-color-cool-gray-700; |
202 |
| - opacity: 0.5; |
| 217 | + color: unquote($button---color + "80"); |
203 | 218 | }
|
204 | 219 | }
|
0 commit comments