Skip to content

Fix styling: active states, focus rings, spinner theming, hairline borders#185

Open
skalthoff wants to merge 1 commit intozotero:masterfrom
skalthoff:fix/styling-components
Open

Fix styling: active states, focus rings, spinner theming, hairline borders#185
skalthoff wants to merge 1 commit intozotero:masterfrom
skalthoff:fix/styling-components

Conversation

@skalthoff
Copy link
Contributor

@skalthoff skalthoff commented Feb 2, 2026

Summary

  • Add :active pressed-state styling to editor toolbar buttons, context menu items, and selection popup wide-button
  • Remove redundant outline: 0 from editor toolbar buttons so the base :focus-visible rule applies
  • Fix context menu focus suppression to preserve keyboard :focus-visible ring while still suppressing on mouse focus
  • Add text-align: left on page number input when focused for editing feedback
  • Replace hardcoded spinner colors (#f3f3f3/#7e7e7e) with CSS variables (--fill-quinary/--fill-secondary) for dark mode support
  • Add 1dppx media query fallbacks for 0.5px borders on range thumb, tool-toggle, split-toggle, and switch knob
  • Add reusable hairline-border mixin

Addresses items 1–6 and 8 from #28. Item 7 (zotero-pdf.js#10) is blocked on access to the private repo.

Test plan

  • Tab through toolbar buttons, editor bubble, context menu — focus rings visible
  • Click/press toolbar buttons, editor bubble buttons, context menu items — active/pressed state visible
  • Click page number input — text alignment shifts left on focus
  • Toggle dark mode — spinners in outline view and find popup use theme colors
  • On 1x display, 0.5px borders render as 1px; on retina they stay crisp

…rders

- Add :active pressed-state styling to editor toolbar buttons, context
  menu items, and selection popup wide-button
- Remove redundant outline:0 from editor toolbar buttons so base
  :focus-visible rule applies
- Fix context menu focus suppression to only apply on mouse focus,
  preserving keyboard :focus-visible ring
- Add text-align: left on page number input focus for editing feedback
- Replace hardcoded spinner colors (#f3f3f3/#7e7e7e) with CSS variables
  (--fill-quinary/--fill-secondary) for dark mode support
- Add 1dppx media query fallbacks for 0.5px borders on range thumb,
  tool-toggle, split-toggle, and switch knob
- Add reusable hairline-border mixin
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant