Skip to content

fix: dropzone focus state and add-more-files button semantics#32

Merged
rubenhensen merged 4 commits intomainfrom
fix/issue-23
Apr 3, 2026
Merged

fix: dropzone focus state and add-more-files button semantics#32
rubenhensen merged 4 commits intomainfrom
fix/issue-23

Conversation

@rubenhensen
Copy link
Copy Markdown
Contributor

@rubenhensen rubenhensen commented Mar 5, 2026

Summary

  • Adds visible focus outline (:focus-visible) to the remove (✕) button in the dropzone component, matching the same outline style used elsewhere in the codebase
  • Converts the "add more files" element to a proper <button> element by passing an onclick prop to the Chip component in FileInput.svelte, ensuring correct keyboard accessibility and semantics
  • Prevents focus outlines from being clipped by parent containers (overflow: clip with overflow-clip-margin on .dz-previews and .help-section)
  • Adds z-index to HelpToggle focus state so the outline paints above sibling recipient cards
  • Restores primary-btn focus-visible outline on 1dppx screens (was incorrectly set to outline: none)
  • Overrides Dropzone's default white background on file previews with background: transparent

Closes #23

…s a button (#23)

- Add :focus-visible outline to the remove button in UploadedFileTemplate for keyboard visibility
- Pass onclick to the Chip component in FileInput so it renders as a <button> element, fixing keyboard accessibility and semantics for the "add more files" control
- Add focus-visible outline + z-index to remove button in dropzone
- Override Dropzone's default white background on file previews
- Use overflow:clip with clip-margin on dz-previews and help-section
  so focus outlines aren't cut off by scroll containers
- Add z-index to HelpToggle focus state so outline paints above
  sibling recipient cards
- Restore primary-btn focus-visible outline on 1dppx screens
  (was incorrectly set to outline:none)
@rubenhensen rubenhensen merged commit f27eb77 into main Apr 3, 2026
3 checks passed
@rubenhensen rubenhensen deleted the fix/issue-23 branch April 3, 2026 12:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Dropzone: missing focus state on remove button & add-more-files not a button

1 participant