-
Notifications
You must be signed in to change notification settings - Fork 113
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
Migrate rural or underserved tool into cfgov-refresh #5092
Conversation
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.
There are accessibility issues in these changes.
<h2> | ||
Check status of properties for loans extended in | ||
<small> | ||
<select id="year" name="year"> |
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.
Looks like there's a label missing for this input. That makes it hard for people using screen readers or voice control to use the input.
a-text-input__full | ||
input-address" | ||
name="address1" | ||
type="text" /> |
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.
Looks like there's a label missing for this input. That makes it hard for people using screen readers or voice control to use the input.
Add another address | ||
</a> | ||
</p> | ||
<input class="a-btn" type="submit" value="Check addresses" /> |
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.
Looks like there's a label missing for this input. That makes it hard for people using screen readers or voice control to use the input.
<input id="file-name" | ||
name="file-name" | ||
class="a-text-input" | ||
value="No file chosen"> |
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.
Looks like there's a label missing for this input. That makes it hard for people using screen readers or voice control to use the input.
</p> | ||
|
||
<p> | ||
<input class="a-btn" type="submit" value="Check addresses" /> |
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.
Looks like there's a label missing for this input. That makes it hard for people using screen readers or voice control to use the input.
In Firefox the dropdown has visibly changed from this: to this: Neither of these look great, but the latter looks a bit too squeezed to me, and even more squeezed than the screenshot you shared. Additionally, the FAQs don't show up as collapsed for me: and in the developer console, I see this warning: This is all running locally, after doing a [12:25:01] Using gulpfile ~/Projects/cfgov-refresh/gulpfile.js
[12:25:01] Starting 'build'...
[12:25:01] Starting 'styles'...
[12:25:01] Starting 'scripts'...
[12:25:01] Starting 'images'...
[12:25:01] Starting 'styles:apps'...
[12:25:01] Starting 'styles:featureFlags'...
[12:25:01] Starting 'styles:ie'...
[12:25:01] Starting 'styles:modern'...
[12:25:01] Starting 'styles:nemo'...
[12:25:01] Starting 'styles:ondemand'...
[12:25:01] Starting 'scripts:polyfill'...
[12:25:01] Starting 'scripts:modern'...
[12:25:01] Starting 'scripts:apps'...
[12:25:01] Starting 'scripts:external'...
[12:25:01] Starting 'scripts:nemo'...
[12:25:01] Starting 'scripts:ondemand'...
[12:25:01] Starting 'images:apps'...
[12:25:01] Starting 'images:general'...
[12:25:01] Starting 'styles:nemoProd'...
[12:25:01] Starting 'styles:nemoIE8'...
[12:25:03] Started generating service worker file...
[12:25:03] Copying eRegs' manifest...
App dependencies not installed, please run from project root: npm --prefix ./cfgov/unprocessed/apps/rural-or-underserved-tool install ./cfgov/unprocessed/apps/rural-or-underserved-tool
[12:25:03] Starting 'scripts:ondemand:header'...
[12:25:03] Starting 'scripts:ondemand:footer'...
[12:25:03] Starting 'scripts:ondemand:nonresponsive'...
[12:25:03] Finished 'styles:featureFlags' after 1.91 s
[12:25:03] webpack-stream - No files given; aborting compilation
[12:25:03] Successfully copied eRegs' manifest to ./cfgov/static_built/apps/regulations3k/regulations3k-manifest.json
[12:25:03] Generated cfgov/regulations3k/jinja2/regulations3k/regulations3k-service-worker.js, which will precache 0 files, totaling 0 bytes. Note the message about ROUT dependencies not being installed. Is this expected? |
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.
There are accessibility issues in these changes.
Updated drop-down to use CF It's pretty tight at mobile. Not sure how we want to handle that. |
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.
👏 You fixed the issue(s)! Great work.
@anselmbradford: I pushed up a change to convert the FAQs from individual expandables to expandable groups to match a little more closely what's there now. Take a look at that and see what you think. Also, there's a slight style bug I'm seeing where the expandable headings aren't vertically centered because they're still getting the
Looking at other expandable groups (like the ones on the TILA-RESPA Integrated Disclosure FAQs page), I think this might have something to do with the order the Capital Framework styles are getting imported? It looks like |
- Float the show/hide map button to the right - Hide the border between result and map
- Reduce the top and bottom margins around result count - Bump up the font size of the result counters
@anselmbradford, I pushed up a couple more small style updates (more info on those in the GHE issue). I'm pretty secure in the design side of the updates but much less secure about the CSS I used to make the design side happen, so feel free to give the code a look and change anything that needs changing. |
@anselmbradford, one other thing I noticed while I was poking around: it looks like the |
Hmm, yeah most definitely from the mega-menu, since the hamburger menu sits alongside the page's contents to enable it to slide, so this sounds like an issue we need to resolve within the table itself. |
@anselmbradford: I wonder if we should convert the tables to the horizontal scroll version? Seems like in theory what we want to happen, but I don't think I've every actually seen one of our scrolling tables in the wild yet, so I'm not sure if that's the right way to go. |
@niqjohnson I fixed this in 1363d77 You were right, the order was wrong (actually cf-core was being delivered twice). |
Converted to scrolling tables in e9a8167 |
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.
This is looking good. I just had a few comments: two that seem to come out of our typical scrollable table styles and one on adding a little more space between the buttons.
|
||
<p class="block block__flush-top block__flush-bottom block__padded-top block__padded-bottom"> | ||
<a data-table="rural" class="button-more u-hidden a-btn a-btn__secondary no-decoration" href="#" id="ruralMore">View 10 more</a> | ||
<a data-table="rural" class="margin-left-1 view-all u-hidden no-visit" href="#" id="ruralAll">View all</a> |
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.
Let's give these buttons the same separation as similar button combos on cf.gov, like the "Apply filters" and "Clear filters" buttons in filter modules. I think that's a 5px separation.
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.
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.
Also opened cfpb/capital-framework#946
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 all be button
elements, too.
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.
Ah, true
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.
The spacing looks good to me
Migrates https://github.com/cfpb/rural-or-underserved-test into this repo.
Additions
Testing
./frontend.sh && gulp clean && gulp build
and run a local server.Screenshots
Notes