Conversation
- Upgrade USWDS so that <summary> disclosure triangle shows up
package.json
Outdated
| "dependencies": { | ||
| "@rails/webpacker": "^4.3.0", | ||
| "identity-style-guide": "^2.2.3", | ||
| "identity-style-guide": "^5.0.3", |
There was a problem hiding this comment.
This won't be quite so easy an upgrade, unfortunately. Some of the breaking changes do affect the dashboard.
Notably:
Several button variants have been removed. These include: [...]
There's one instance of a dropdown:
... though last I checked, I'm not sure this partial is even referenced anywhere.
And a tiny button:
2.x to 3.x is the major upgrade of USWDS: https://github.com/18F/identity-style-guide/blob/main/CHANGELOG.md#300 . This usually includes updating banner markup.
The original ticket for this is LG-3762.
There was a problem hiding this comment.
Ok so then I'll revert that maybe I'll just do a quick !important or something one-off style to get the <details>/<summary> fix in?
There was a problem hiding this comment.
It might not be that bad if we could remove the dropdown and check or substitute the teams list "tiny" button, but yeah, a one-off fix would be a reasonable alternative if we don't want to deal with it here.
| <% end %> | ||
|
|
||
| <h2> | ||
| <label for="saml_client_cert">Public certificate:</label> |
There was a problem hiding this comment.
It existed previously, though the name on the new <details> had caught my attention: Does the for attribute actually do anything for us? This doesn't seem like an appropriate use of a label, since it's not associated with an input.
https://developer.mozilla.org/en-US/docs/Web/Guide/HTML/Content_categories#Form_labelable
I could maybe see it as a case for aria-labelledby or aria-describedby.
There was a problem hiding this comment.
Looks like they came from #366 from AxE matchers
There was a problem hiding this comment.
Ok no that was not right... looks like those have just been there a long time.... it's probably time for them to go, especially since this page isn't a form?
There was a problem hiding this comment.
I wonder if they were copied over from the edit form?
|
(overriding snyk because it's stalled out) |
I was starting to make changes to the dashboard to support multiple to correspond to 18F/identity-idp#4851
But then I noticed a lot of things I wanted to clean up so I started on that:
_certificate_expiration.html.erbpartialServiceProviderCertificateclassServiceProviderCertificateclass, it now wraps an X509 cert rather than subclasses one (easier to test)I updated USWDS to fix an error with Chrome and the triangle disclosure being hidden(reverted that fix based on Certificate cleanup #404 (comment))