Refactor home search #21

Merged
ro merged 6 commits from moiety/search into develop 2025-05-05 22:44:21 +02:00
Collaborator

some things i changed:

  • the input field and the button are now vertically aligned
  • the search icon uses the current font color for its fill
  • the focus indicator is distinct while (i think) fitting in the design
  • the search button has an accessible name

things i haven't changed (yet)

  • the search field uses placeholder for the label, this is generally not a good way to make stuff accessible but i'll expand on that in an issue
  • the search field doesn't really have an affordance that it's a search field (outside of the text)
  • at smaller sizes the placeholder text gets chopped off on the right
some things i changed: - the input field and the button are now vertically aligned - the search icon uses the current font color for its fill - the focus indicator is distinct while (i think) fitting in the design - the search button has an accessible name things i haven't changed (yet) - the search field uses `placeholder` for the label, this is generally not a good way to make stuff accessible but i'll expand on that in an issue - the search field doesn't really have an affordance that it's a search field (outside of the text) - at smaller sizes the placeholder text gets chopped off on the right
Moiety added the
UI/UX
accessibility
labels 2025-05-02 12:43:44 +02:00
Moiety added 1 commit 2025-05-02 12:43:44 +02:00
Moiety added 1 commit 2025-05-02 17:03:59 +02:00
adds a focus indicator that passes the accessibility requirements WCAG 2.2: §1.4.11 & §2.4.7
Moiety added 1 commit 2025-05-02 17:24:07 +02:00
this change allows us to use the font colour for the icon. it might also be nice to use a sprite.svg for all icons. this would use the same <use> mechanism as i did here.

this also optimises the SVG a bit
Moiety added 1 commit 2025-05-02 17:33:20 +02:00
also changes the CSS for the text transform
Moiety added 2 commits 2025-05-02 17:50:02 +02:00
the blanket statement `all` causes some weird animations when resizing the page. setting this to only transition specific properties fixes this.
Collaborator

Overall, I think these are fine, but I want the focus indicator on the search to be loud. That's the reason for the color flip. If it needs more contrast, I'll work on that, but I don't want subtle for that component.

Overall, I think these are fine, but I want the focus indicator on the search to be loud. That's the reason for the color flip. If it needs more contrast, I'll work on that, but I don't want subtle for that component.
Collaborator

Never mind. I misunderstood what these changes do.

This is all good.

Never mind. I misunderstood what these changes do. This is all good.
Moiety changed title from WIP: Refactor home search to Refactor home search 2025-05-05 22:35:04 +02:00
Moiety force-pushed moiety/search from acfd553f19 to fed8748923 2025-05-05 22:41:05 +02:00 Compare
ro approved these changes 2025-05-05 22:44:08 +02:00
ro left a comment
Collaborator

very nice. much needed edits

very nice. much needed edits
ro merged commit d310cf4fb9 into develop 2025-05-05 22:44:21 +02:00
Moiety deleted branch moiety/search 2025-05-05 22:44:52 +02:00
Sign in to join this conversation.
No reviewers
ro
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: projects/thebadspace#21
No description provided.