Improve client accessibility and bump Harbor versions
This commit is contained in:
@@ -60,3 +60,17 @@ test('responsive motion has a reduced-motion fallback', () => {
|
||||
assert.match(reducedMotion, /transition:\s*none/);
|
||||
assert.match(reducedMotion, /animation:\s*none/);
|
||||
});
|
||||
|
||||
test('tooltips stay opaque, above adjacent content, and do not stick after pointer clicks', () => {
|
||||
const tooltip = rule('.client-tooltip');
|
||||
|
||||
assert.match(tooltip, /z-index:\s*1000/);
|
||||
assert.match(tooltip, /background:\s*oklch\(0\.14 0\.012 145\)/);
|
||||
assert.doesNotMatch(tooltip, /transparent|backdrop-filter/);
|
||||
assert.match(styles, /\.client-power-section:has\(\.client-tooltip-anchor:hover\)[\s\S]*z-index:\s*90/);
|
||||
assert.match(styles, /\.client-tooltip-anchor:focus-visible > \.client-tooltip/);
|
||||
assert.match(styles, /\.client-tooltip-anchor:has\(> :focus-visible\) > \.client-tooltip/);
|
||||
assert.doesNotMatch(styles, /\.client-tooltip-anchor:focus-within > \.client-tooltip/);
|
||||
assert.match(rule('.harbor-version-tooltip'), /background:\s*oklch\(0\.14 0\.012 145\)/);
|
||||
assert.match(rule('.harbor-mode-tooltip'), /background:\s*oklch\(0\.14 0\.012 145\)/);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user