mirror of
https://github.com/penpot/penpot.git
synced 2026-11-26 21:00:32 +00:00
* ♻️ Use DS icon buttons for the Measures toggles "Clip content" and "Show in view mode" were labels over hidden checkboxes, styled with the deprecated %button-tertiary. They become ghost icon-button* with aria-pressed: real buttons with a name, the DS tooltip instead of the browser title, and the DS pressed corners. The handlers toggle the current value instead of reading the checkbox, and the two unused refs go away. The ratio lock, already an icon-button*, marks its state with aria-pressed instead of the legacy .selected class; it looks the same. A zero-tolerance visual test shows both toggles at rest, on hover and turned off, and the ratio lock off and on. AI-assisted-by: claude-opus-5-5 * ♻️ Drop the unused button styles of the Measures menu The toggles and the ratio lock no longer use the legacy button styles, so these selectors match nothing and go away: .lock-size-btn, .lock-ratio-icon, .clip-content, .show-in-viewer, .clip-content-input, .clip-content-label, .selected and .checkbox-button. Also .numeric-input-measures, which no module uses. A grep over frontend/src found no other use of any of them. .clip-show takes the DS spacing token. The refactor/ import stays for the presets dropdown and the inputs, which move to the DS with the selects and inputs groups. The visual test shows 0 px against the previous commit. AI-assisted-by: claude-opus-5-5