|
19 | 19 | @include tutor-transition(); |
20 | 20 |
|
21 | 21 | &:disabled { |
| 22 | + color: $tutor-text-subdued; |
22 | 23 | cursor: not-allowed; |
| 24 | + |
| 25 | + svg { |
| 26 | + color: $tutor-icon-disabled; |
| 27 | + } |
23 | 28 | } |
24 | 29 | } |
25 | 30 |
|
|
28 | 33 | background-color: $tutor-button-primary; |
29 | 34 | color: $tutor-text-primary-inverse; |
30 | 35 |
|
| 36 | + svg { |
| 37 | + color: $tutor-icon-idle-inverse; |
| 38 | + } |
| 39 | + |
31 | 40 | &:hover:not(:disabled) { |
32 | 41 | background-color: $tutor-button-primary-hover; |
33 | 42 | color: $tutor-text-primary-inverse; |
|
40 | 49 |
|
41 | 50 | &:disabled { |
42 | 51 | background-color: $tutor-button-primary-disabled; |
| 52 | + color: $tutor-text-primary-inverse; |
| 53 | + |
| 54 | + svg { |
| 55 | + color: $tutor-icon-idle-inverse; |
| 56 | + } |
43 | 57 | } |
44 | 58 | } @else if $variant == primary-soft { |
45 | 59 | background-color: $tutor-button-primary-soft; |
46 | 60 | color: $tutor-text-brand; |
47 | 61 |
|
| 62 | + svg { |
| 63 | + color: $tutor-icon-brand; |
| 64 | + } |
| 65 | + |
48 | 66 | &:hover:not(:disabled) { |
49 | 67 | background-color: $tutor-button-primary-soft-hover; |
50 | 68 | color: $tutor-text-brand; |
|
57 | 75 |
|
58 | 76 | &:disabled { |
59 | 77 | background-color: $tutor-button-disabled; |
60 | | - color: $tutor-text-subdued; |
61 | 78 | } |
62 | 79 | } @else if $variant == destructive { |
63 | 80 | background-color: $tutor-button-destructive; |
64 | 81 | color: $tutor-text-primary-inverse; |
65 | 82 |
|
| 83 | + svg { |
| 84 | + color: $tutor-icon-idle-inverse; |
| 85 | + } |
| 86 | + |
66 | 87 | &:hover:not(:disabled) { |
67 | 88 | background-color: $tutor-button-destructive-hover; |
68 | 89 | color: $tutor-text-primary-inverse; |
|
75 | 96 |
|
76 | 97 | &:disabled { |
77 | 98 | background-color: $tutor-button-disabled; |
78 | | - color: $tutor-text-subdued; |
79 | 99 | } |
80 | 100 | } @else if $variant == destructive-soft { |
81 | 101 | background-color: $tutor-button-destructive-soft; |
82 | 102 | color: $tutor-text-critical; |
83 | 103 |
|
| 104 | + svg { |
| 105 | + color: $tutor-icon-critical; |
| 106 | + } |
| 107 | + |
84 | 108 | &:hover:not(:disabled) { |
85 | 109 | background-color: $tutor-button-destructive-soft-hover; |
86 | 110 | color: $tutor-text-critical; |
|
93 | 117 |
|
94 | 118 | &:disabled { |
95 | 119 | background-color: $tutor-button-disabled; |
96 | | - color: $tutor-text-subdued; |
97 | 120 | } |
98 | 121 | } @else if $variant == secondary { |
99 | 122 | background-color: $tutor-button-secondary; |
100 | 123 | color: $tutor-text-primary; |
101 | 124 |
|
| 125 | + svg { |
| 126 | + color: $tutor-icon-idle; |
| 127 | + } |
| 128 | + |
102 | 129 | &:hover:not(:disabled) { |
103 | 130 | background-color: $tutor-button-secondary-hover; |
104 | 131 | color: $tutor-text-primary; |
|
111 | 138 |
|
112 | 139 | &:disabled { |
113 | 140 | background-color: $tutor-button-disabled; |
114 | | - color: $tutor-text-subdued; |
115 | 141 | } |
116 | 142 | } @else if $variant == outline { |
117 | 143 | background-color: $tutor-button-outline-inverse; |
118 | 144 | color: $tutor-text-primary; |
119 | 145 | box-shadow: inset 0 0 0 1px $tutor-border-idle; |
120 | 146 |
|
| 147 | + svg { |
| 148 | + color: $tutor-icon-idle; |
| 149 | + } |
| 150 | + |
121 | 151 | &:hover:not(:disabled) { |
122 | 152 | background-color: $tutor-button-outline-hover; |
123 | 153 | color: $tutor-text-primary; |
|
130 | 160 |
|
131 | 161 | &:disabled { |
132 | 162 | background-color: $tutor-button-disabled; |
133 | | - color: $tutor-text-subdued; |
134 | 163 | } |
135 | 164 | } @else if $variant == ghost { |
136 | 165 | background-color: transparent; |
137 | 166 | color: $tutor-text-primary; |
138 | 167 |
|
| 168 | + svg { |
| 169 | + color: $tutor-icon-secondary; |
| 170 | + } |
| 171 | + |
139 | 172 | &:hover:not(:disabled) { |
140 | 173 | background-color: $tutor-button-ghost-hover; |
141 | 174 | color: $tutor-text-primary; |
142 | 175 | } |
| 176 | + } @else if $variant == ghost-brand { |
| 177 | + background-color: transparent; |
| 178 | + color: $tutor-text-brand; |
143 | 179 |
|
144 | | - &:disabled { |
145 | | - color: $tutor-text-subdued; |
| 180 | + svg { |
| 181 | + color: $tutor-icon-brand; |
| 182 | + } |
| 183 | + |
| 184 | + &:hover:not(:disabled) { |
| 185 | + background-color: $tutor-button-primary-soft; |
146 | 186 | } |
147 | 187 | } @else if $variant == link { |
148 | 188 | background-color: transparent; |
149 | | - color: $tutor-text-primary; |
| 189 | + color: $tutor-text-brand; |
150 | 190 |
|
151 | | - &:disabled { |
152 | | - color: $tutor-text-subdued; |
| 191 | + svg { |
| 192 | + color: $tutor-icon-brand; |
| 193 | + } |
| 194 | + |
| 195 | + &:hover:not(:disabled) { |
| 196 | + color: $tutor-text-brand-hover; |
| 197 | + |
| 198 | + svg { |
| 199 | + color: $tutor-icon-brand-hover; |
| 200 | + } |
| 201 | + } |
| 202 | + } @else if $variant == link-gray { |
| 203 | + background-color: transparent; |
| 204 | + color: $tutor-text-subdued; |
| 205 | + |
| 206 | + svg { |
| 207 | + color: $tutor-icon-subdued; |
| 208 | + } |
| 209 | + |
| 210 | + &:hover:not(:disabled) { |
| 211 | + color: $tutor-text-secondary; |
| 212 | + |
| 213 | + svg { |
| 214 | + color: $tutor-icon-secondary; |
| 215 | + } |
| 216 | + } |
| 217 | + } @else if $variant == link-destructive { |
| 218 | + background-color: transparent; |
| 219 | + color: $tutor-text-critical; |
| 220 | + |
| 221 | + svg { |
| 222 | + color: $tutor-icon-critical; |
| 223 | + } |
| 224 | + |
| 225 | + &:hover:not(:disabled) { |
| 226 | + color: $tutor-text-critical-hover; |
| 227 | + |
| 228 | + svg { |
| 229 | + color: $tutor-icon-critical-hover; |
| 230 | + } |
153 | 231 | } |
154 | 232 | } |
155 | 233 | } |
|
0 commit comments