-
Notifications
You must be signed in to change notification settings - Fork 90
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
Add new section for file upload, with examples #305
Conversation
- Ensure both examples have their own snippets - Do not style the input, leave as native control - Show how errors look with this input
Looks good, I wonder if we should put an explanation on why we are not doing a custom upload as I imagine some people will see this as an opportunity to re-implement it without realising the effort we need to go into to making sure a custom input behaves as well as a native input? |
Thanks Gemma 👍 |
<li>the control gains focus when tabbing through the page</li> | ||
<li>the control functions using a keyboard</li> | ||
<li>the control functions using assistive technology</li> | ||
<li>the control functions when javascript is disabled</li> |
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.
should we generally refer to 'javascript is not available', given the majority case is not 'disabled'
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.
Yup, absolutely - feel free to open a PR to fix!
0.22.0 - Adds new Apple touch icons to precompile list for Rails apps [PR #305](alphagov/govuk_template#305)
What problem does the pull request solve?
This PR fixes #298, by reverting the custom file upload style.
What does it do?
The button style currently used prevents the button from gaining focus.
This a bug, for now it is better to revert to the native file upload and in future find a custom solution which is accessible.
Screenshots (if appropriate):
Before:
After:
After (focussed by tabbing through form examples page):
New section added to the "Form elements" guide:
What type of change is it?