Commit 34f5c6d
committed
fix(core): fade the strip out at its own edge, not past it
The scroll box is a ring bleed wider than the TabList on each inline
side -- that is what keeps the first and last tab's focus ring from
being clipped -- so the fade ran to the bleed edge and the strip painted
tabs outside the component: past a divider rail, and past the scroll
arrow that caps that edge, which left a sliver of tab showing beyond the
arrow. Measured against the demo container in Chromium across direction,
scroll position and both edges: ink up to 19/255 outside the box in five
of eight configurations, none in any of them now.
Masking the bleed costs nothing, because it is only masked at an edge
that is scrolled away from, and a stop at such an edge never holds focus
-- the reveal keeps the focused stop a fade width clear of both edges.
The fade's opaque point and that reveal inset are the same distance for
the same reason, so they are now the same constant.1 parent 4d85fec commit 34f5c6d
2 files changed
Lines changed: 44 additions & 12 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1182 | 1182 | | |
1183 | 1183 | | |
1184 | 1184 | | |
| 1185 | + | |
| 1186 | + | |
| 1187 | + | |
| 1188 | + | |
| 1189 | + | |
| 1190 | + | |
| 1191 | + | |
| 1192 | + | |
| 1193 | + | |
| 1194 | + | |
| 1195 | + | |
| 1196 | + | |
| 1197 | + | |
| 1198 | + | |
| 1199 | + | |
| 1200 | + | |
| 1201 | + | |
| 1202 | + | |
| 1203 | + | |
| 1204 | + | |
1185 | 1205 | | |
1186 | 1206 | | |
1187 | 1207 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
141 | 141 | | |
142 | 142 | | |
143 | 143 | | |
144 | | - | |
145 | | - | |
146 | | - | |
147 | | - | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
148 | 149 | | |
149 | 150 | | |
150 | 151 | | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
151 | 163 | | |
152 | 164 | | |
153 | 165 | | |
| |||
213 | 225 | | |
214 | 226 | | |
215 | 227 | | |
216 | | - | |
217 | | - | |
| 228 | + | |
| 229 | + | |
218 | 230 | | |
219 | 231 | | |
220 | 232 | | |
221 | 233 | | |
222 | | - | |
223 | | - | |
| 234 | + | |
| 235 | + | |
224 | 236 | | |
225 | 237 | | |
226 | 238 | | |
227 | | - | |
| 239 | + | |
228 | 240 | | |
229 | 241 | | |
230 | 242 | | |
| |||
365 | 377 | | |
366 | 378 | | |
367 | 379 | | |
368 | | - | |
| 380 | + | |
369 | 381 | | |
370 | | - | |
371 | | - | |
| 382 | + | |
| 383 | + | |
372 | 384 | | |
373 | 385 | | |
374 | 386 | | |
| |||
0 commit comments