Skip to content
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

USWDS-Site - Disabled styles: Create guidance for disabled elements best practice #2108

Closed
amyleadem opened this issue May 24, 2023 · 9 comments
Assignees
Labels
Affects: Content Relates to content Affects: Guidance Relates to guidance Needs: Discussion We need to discuss an approach to this issue Role: Content Content/writing skills needed Role: Dev Development/engineering skills needed Role: Research Research skills needs Role: UX UX skils needed

Comments

@amyleadem
Copy link
Contributor

amyleadem commented May 24, 2023

Summary

Once the landscape analysis for disabled styles is completed in uswds/uswds#5117 and we have determined our recommended guidance, we should create public documentation that:

  1. Creates guidance for when to use (or not use) disabled styles
  2. Demonstrates recommended code patterns
  3. Shares supporting research
@amyleadem amyleadem changed the title USWDS-Site - Disabled styles: Define recommendations for disabled elements USWDS-Site - Disabled styles: Create guidance for disabled elements best practice May 24, 2023
@amyleadem
Copy link
Contributor Author

@jaclinec For housekeeping, I went ahead and assigned this issue to you, but realized that it might be a duplicate of #2145. Feel free to close this issue if that is true!

@jaclinec
Copy link
Contributor

@amyleadem It's not a duplicate so we're good! I am going to reassign to @sarah-sch per our PI planning decisions, but she and I will both work closely on this. Thanks!

@jaclinec
Copy link
Contributor

I've begun a draft of disabled states content for the site: https://docs.google.com/document/d/11K16g1qmqh9aU-ebSFtn_WRCVjB6lmBVLno5Vs854Ig/edit?usp=sharing

Next, I will share with the team for feedback, and begin drafting research findings that we will link from the site to Github.

@jaclinec
Copy link
Contributor

jaclinec commented Aug 2, 2023

I've drafted what will be the publicly sharable, published disabled states research findings Github wiki content that we may link to from the site. We are following the model we used for the Link component research findings in the Github wiki. For now it is just a draft in a Google doc. We can move it to the wiki when it's a final draft.

Thank you @annepetersen for already reviewing and revising the content. Please, @thisisdano and one Content Strategist should also take a pass @bonnieAcameron @sarah-sch

8/14/2023 update: I am moving this part of the issue (drafting publicly shareable research findings) to #2243 to break up this work.

@jaclinec
Copy link
Contributor

jaclinec commented Aug 3, 2023

We've taken a look at the suggested places for site updates as well as drafted guidance content as a team and this issue needs review for the following questions:

@jaclinec jaclinec added Needs: Discussion We need to discuss an approach to this issue Affects: Content Relates to content Affects: Guidance Relates to guidance Role: Content Content/writing skills needed Role: Dev Development/engineering skills needed Role: Research Research skills needs Role: UX UX skils needed labels Aug 3, 2023
@mahoneycm
Copy link
Contributor

@jaclinec I left a couple of comments on the code placement in the docs.

We currently do not have any patterns displaying acceptable usage of disabled form elements. It might be beneficial to show an example but, on the other hand, we also recommend avoiding using disabled forms so I'm not sure if it's better to lead by example and exclude one?

@jaclinec
Copy link
Contributor

We decided we are going to take a phased rollout approach to updating/creating disabled states guidance for the website since it affects so many pages and the work has become too large to capture in one issue.

I am breaking up this issue into manageable pieces:

As far as determining if our code matches what we are proposing/our guidance, my thought is to tackle that for each phase of the rollout. Open to suggestions from @amyleadem @mahoneycm @mejiaj

This issue can likely be closed as we are carrying the work into the issues above.

@mahoneycm
Copy link
Contributor

mahoneycm commented Aug 16, 2023

The site currently uses reusable content blocks for information that is valuable on multiple pages. I wonder if something like this might be valuable on component pages that can be disabled, or if it'd be better to provide component specific guidance. Might help to reduce the lift if we're able to provide general disabled guidance and include what's necessary on the pages of components that can be disabled.

State variants example The state variant guidance below is featured on all utility pages that feature state variants

image

@jaclinec
Copy link
Contributor

@mahoneycm I like the idea of being able to use content blocks for multiple pages to lighten the load, but after writing draft guidance for several components already, it feels somewhat necessary to customize guidance for each component. I'm handing this off to the CS team so definitely open to other opinions around that.

I'm closing this issue as done and the work will continue in the separate phases as outlined in the issues above. Thanks, all!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Affects: Content Relates to content Affects: Guidance Relates to guidance Needs: Discussion We need to discuss an approach to this issue Role: Content Content/writing skills needed Role: Dev Development/engineering skills needed Role: Research Research skills needs Role: UX UX skils needed
Projects
Archived in project
Development

No branches or pull requests

5 participants