-
Notifications
You must be signed in to change notification settings - Fork 7
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
UX/design debt 3 #263
Comments
@jorisleker what do we do about the Space Grotesk font rendering straight quotes as curly quotes? There is an issue opened with the font (floriankarsten/space-grotesk#44) but it doesn't look like there's any progress made on this. |
@praseodym The weird thing is, Space Grotesk actually has straight (single and double) quotes. see Google Fonts glyphs page. But it looks like the chars are flipped in the fontset. When I copy/paste these straight quotes from the screenshot below, I get these chars: |
Woops, my bad. There are quite some polling stations with names like |
What about renaming our example polling stations so that we don't have quotes there? I can align it with the names from the Figma design. |
Those are the Unicode prime (U+2032) and double prime (U+2033) symbols. I'm not sure why the font would have those but not proper quote glyphs. |
Hiding the issue does not make it go away 😂 But fine with me.
Ah check. Alternative would be to use Space Mono to render straight quotes, because that font has proper quotes. But that feels like an even bigger hack (and requires including an additional font). |
how do we handle keyboard shortcuts?
|
In the polling station selector we use this, I think that works fine: abacus/frontend/app/component/form/polling_station_choice/PollingStationSelector.tsx Lines 46 to 50 in 53afc53
|
this only triggers when the element has focus, is that the intention of the shortcuts below forms? |
If you have an elegant way of making the shortcut work anywhere on the page that would be best. If that's not easily achievable, having it work when focus is on the text boxes is good enough for now. |
This is my current implementation: |
but might want to decouple it from a button and create a component ? |
I'm ok with keeping it there for now, but I don't really like how Also, the |
I've added code for this:
But spacebar doesnt normally trigger links from tags. It does now in progress list but wouldn't that make people expect it to work on other links as wel? |
Shift+enter submit works, but the focusing of the next row fires first. |
spacebar shouldn't work on links. Normal browser behavior is activate focussed action with 'enter', spacebar behaves like pagedown |
@jorisleker if using "ENTER" to go through the inputs, you enter numbers press enter and reach the submit button, it is focused after pressing ENTER on the last input. |
I think it makes sense to submit the form when you press (am thinking of changing the |
so this issue can be closed |
/overview
, you briefly see the page footer right below the top navigation bar whilst the content of the page is loading./1/input
the entire page is white whilst page is loading: this is how we want it to be./input
allow polling-station-numbers starting with0
(i.e.033
). Strip leading zeros before doing lookup of the polling station number in the database (002
and02
should evaluate to2
) → Some design fixes #284input-grid td
's should havepadding:.5rem 1.5 rem
(iso1rem 1.5rem
) andline-height:1.25rem
(iso inherited value of1.5rem
After #133 is fixed:
Pressing Enter in the last input row returns focus to the first row, it should move focus to the submit button.will be fixed in Improve keyboard navigation on list data entry page #207With the tab-key I can highlight the "volgende" button and then submit by hitting the space bar. I can also highlight the navigation items on the left, but there hitting the space bar does not get me to the item I highlighted.No fix needed. Spacebar does not submit actions by default. OnlyENTER
does.The text was updated successfully, but these errors were encountered: