-
Notifications
You must be signed in to change notification settings - Fork 224
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
EDSC-4349: Adjustments to spatial filter dropdowns and buttons #1846
base: main
Are you sure you want to change the base?
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #1846 +/- ##
==========================================
- Coverage 93.80% 93.78% -0.02%
==========================================
Files 778 778
Lines 18888 18900 +12
Branches 4849 4888 +39
==========================================
+ Hits 17717 17726 +9
+ Misses 1123 1099 -24
- Partials 48 75 +27 ☔ View full report in Codecov by Sentry. |
onClick={() => onItemClick('polygon')} | ||
label="Select Polygon" | ||
aria-label="Select Polygon" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think we need labels or aria labels on all of these these dropdown items, since they are text buttons and the text tells the user what they will be selecting
const buttons = drawToolbar.querySelectorAll('.leaflet-draw-draw-circle, .leaflet-draw-draw-polygon, .leaflet-draw-draw-rectangle, .leaflet-draw-draw-marker') | ||
buttons.forEach((button) => { | ||
if (button.classList.contains('leaflet-draw-draw-circle')) { | ||
button.setAttribute('aria-label', 'Search by spatial circle') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These should read "Draw a [spatial method] on the map to select a spatial extent"
Overview
What is the feature?
Ensuring the spatial buttons and consistent in both order and style, and adding aria-labels to them.
What is the Solution?
Updating the icons for spatial filter buttons to all match the same visual style. Making the spatial dropdown filters be left-aligned. Adding aria-labels to all the spatial filter buttons.
What areas of the application does this impact?
Testing
Reproduction steps
Attachments
Checklist