Repository navigation
Commit 51bab85
committed
3.1.1: a sort marker you can read, and guards that actually guard
A review of 3.1.0 found that several of the checks added alongside it were
quiet rather than wrong, and that one visual change lost information. Six
fixes, each reproduced before and after.
## Unsorted and descending looked the same
ActiveAdmin's sprite had three glyphs: a double arrow for sortable-but-unsorted,
up for ascending, down for descending. The replacement drew the same down
triangle for unsorted and descending, separated only by 0.6 against 1.0
opacity on an 8x4 shape — so a freshly loaded index showed every heading
pointing down. Three shapes again, drawn as masks in currentColor like the
theme switch icons, so they still follow the heading colour into dark mode.
## The type guards for the new palette were never tested
Removing all five $skinStatusTag*Color entries from the colour guard left
`rake css` green: the one BAD fixture passed because `none` crashes mix()
inside the theme, not because the guard fired. A rejection whose message
names gem internals is exactly what the guards exist to replace. The BAD
check now requires the message to name the variable the fixture set, and
there is a fixture per variable rather than one for five. With the guards
deleted it fails five times over, naming each.
## An example that failed the contract beside it
GOOD["status tags recoloured"] paired $skinStatusTagTextColor: #f5f5f5 with
fills left at their defaults, giving 4.17 to 4.19:1 on four of the five —
under the 4.5:1 the guard two screens away enforces. The contrast guard only
ever compiles the defaults, so it could not see its own neighbour.
## Checks that hid each other
The contrast and README checks sat behind `if failures.empty?`, and the first
aborted before the second ran. A run could report one problem while holding
three, and each fix revealed the next. They are collected and reported
together now. For the same reason a single translucent fill no longer returns
early and hides the other four, and the label is no longer reported as a tag
named "label".
## Two lists that drift
TAG_COLOURS was five names typed out by hand — the drift DECLARED_ROWS was
deleted for. It is read from the stylesheet, so a sixth tag colour cannot be
silently exempt. And the !default scanner had no comment awareness, so a note
like `// was: $skinStatusTagOkColor: #8daa92!default;` failed the build
twice over, blaming the live declaration.
## Smaller
* ActiveAdmin's sprite is cleared from every anchor in a sortable heading, not
only the one the theme marks. An application's own link kept the PNG and the
13px indent it needs.
* $skinTableHeaderTextColorDark derives from $skinTextColorDark, matching its
light twin and the sentence the README already carried. It was a literal
that happens to equal it today.1 parent 654a4c1 commit 51bab85
9 files changed
Lines changed: 107 additions & 62 deletions
File tree
- app/assets/stylesheets/wigu
- img
- lib/active_admin_theme
- test
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
38 | | - | |
| 38 | + | |
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
| |||
273 | 273 | | |
274 | 274 | | |
275 | 275 | | |
276 | | - | |
| 276 | + | |
277 | 277 | | |
278 | 278 | | |
279 | 279 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
130 | 130 | | |
131 | 131 | | |
132 | 132 | | |
133 | | - | |
| 133 | + | |
134 | 134 | | |
135 | 135 | | |
136 | 136 | | |
| |||
233 | 233 | | |
234 | 234 | | |
235 | 235 | | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
236 | 245 | | |
237 | 246 | | |
238 | 247 | | |
| |||
905 | 914 | | |
906 | 915 | | |
907 | 916 | | |
908 | | - | |
909 | | - | |
910 | | - | |
911 | | - | |
912 | | - | |
| 917 | + | |
| 918 | + | |
| 919 | + | |
| 920 | + | |
913 | 921 | | |
914 | 922 | | |
| 923 | + | |
| 924 | + | |
| 925 | + | |
| 926 | + | |
915 | 927 | | |
916 | 928 | | |
917 | 929 | | |
918 | 930 | | |
| 931 | + | |
| 932 | + | |
919 | 933 | | |
920 | 934 | | |
921 | | - | |
922 | | - | |
923 | | - | |
924 | | - | |
925 | | - | |
926 | | - | |
927 | | - | |
928 | | - | |
| 935 | + | |
| 936 | + | |
| 937 | + | |
929 | 938 | | |
930 | 939 | | |
931 | 940 | | |
| |||
934 | 943 | | |
935 | 944 | | |
936 | 945 | | |
937 | | - | |
938 | | - | |
939 | | - | |
940 | | - | |
| 946 | + | |
| 947 | + | |
| 948 | + | |
| 949 | + | |
| 950 | + | |
| 951 | + | |
| 952 | + | |
941 | 953 | | |
942 | 954 | | |
943 | | - | |
944 | 955 | | |
945 | 956 | | |
946 | 957 | | |
| |||
Loading
Loading
Loading
Loading
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
| 2 | + | |
3 | 3 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
32 | | - | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
33 | 40 | | |
34 | 41 | | |
35 | 42 | | |
| |||
49 | 56 | | |
50 | 57 | | |
51 | 58 | | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
52 | 64 | | |
53 | 65 | | |
54 | 66 | | |
55 | 67 | | |
56 | 68 | | |
57 | 69 | | |
58 | 70 | | |
59 | | - | |
| 71 | + | |
60 | 72 | | |
61 | 73 | | |
62 | 74 | | |
| |||
156 | 168 | | |
157 | 169 | | |
158 | 170 | | |
159 | | - | |
160 | | - | |
161 | | - | |
162 | | - | |
163 | | - | |
164 | | - | |
165 | | - | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
166 | 191 | | |
167 | 192 | | |
168 | | - | |
| 193 | + | |
169 | 194 | | |
170 | 195 | | |
171 | 196 | | |
| |||
177 | 202 | | |
178 | 203 | | |
179 | 204 | | |
180 | | - | |
| 205 | + | |
181 | 206 | | |
182 | 207 | | |
183 | 208 | | |
| |||
191 | 216 | | |
192 | 217 | | |
193 | 218 | | |
194 | | - | |
195 | | - | |
196 | | - | |
197 | | - | |
198 | | - | |
199 | | - | |
| 219 | + | |
200 | 220 | | |
201 | | - | |
202 | | - | |
203 | | - | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
204 | 234 | | |
205 | | - | |
206 | | - | |
| 235 | + | |
| 236 | + | |
207 | 237 | | |
| 238 | + | |
208 | 239 | | |
209 | 240 | | |
210 | 241 | | |
| |||
239 | 270 | | |
240 | 271 | | |
241 | 272 | | |
242 | | - | |
243 | | - | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
244 | 283 | | |
245 | 284 | | |
246 | 285 | | |
| |||
269 | 308 | | |
270 | 309 | | |
271 | 310 | | |
272 | | - | |
273 | | - | |
274 | | - | |
275 | | - | |
276 | | - | |
277 | | - | |
| 311 | + | |
| 312 | + | |
| 313 | + | |
| 314 | + | |
| 315 | + | |
| 316 | + | |
278 | 317 | | |
279 | | - | |
280 | | - | |
281 | | - | |
282 | | - | |
283 | | - | |
284 | | - | |
285 | | - | |
286 | | - | |
287 | | - | |
| 318 | + | |
288 | 319 | | |
289 | 320 | | |
290 | 321 | | |
| 322 | + | |
| 323 | + | |
| 324 | + | |
291 | 325 | | |
292 | 326 | | |
293 | 327 | | |
| |||
0 commit comments