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

Design: Create Style Guide Presentation (Radio Buttons/Checkboxes) #1839

Open
3 of 9 tasks
Tracked by #1816
NilakshiS opened this issue Sep 10, 2024 · 15 comments
Open
3 of 9 tasks
Tracked by #1816

Design: Create Style Guide Presentation (Radio Buttons/Checkboxes) #1839

NilakshiS opened this issue Sep 10, 2024 · 15 comments

Comments

@NilakshiS
Copy link
Member

NilakshiS commented Sep 10, 2024

Dependency

Overview

The style guide currently does not mention any styling for radio buttons and check boxes. Add these to the Figma Design system and style guide presentation.

Details

The style guide does not explicitly address the styling for radio buttons, though the Example Modal Dialog on the "Dialog Boxes and Modals" page does implicitly show an example from the app.

However the example uses the "Navy Blue - Primary (#002E6D)" color for the radio buttons while the website uses the default browser styling for them. The default styling is used in several other UI elements such as checkboxes and dropdowns.

So we need to decide if we should change the styling of these elements to keep it consistent with the colors of the design system or keep it browser default since it's the style users would already be familiar with.

Action Items

  • Determine the styling for radio button, checkboxes and other similar UI elements:
    • Research examples where it has been changed or kept the same.
    • Decide on a style and create prototypes.
  • Add a section for these styles in the design system
  • Review with Product/ Dev/ Research and iterate if needed based on feedback.
  • If the style is different than dev, open issues for dev to update the design.
  • Update the style guide to add the new design.
  • Once finalized, get Stakeholder sign-off via the stakeholder meeting slide deck.

Resources

@NilakshiS
Copy link
Member Author

NilakshiS commented Oct 1, 2024

09/25/2024
Iteration 1:

  • Design on left is suggested design/ design based on other sections on Figma
  • Design on right is current design on dev when viewing on a Chrome Browser on windows.

Link to iteration 1 Figma

Image for Iteration 1

Image

Feedback received:

  • The "primary blue" used in dropdowns and checkboxes could make the page appear too busy with the same color section headers on page 4 of calculator.
Details

Image

  • Checkboxes and radio buttons should have similar appearances because they appear together on filters in my projects page.
Details

Image

@NilakshiS
Copy link
Member Author

NilakshiS commented Oct 1, 2024

09/27/2024
Iteration 2:

  • Changed the checkboxes and radio buttons back to dev styles
  • Changed the dropdown color to dev style but kept the increased padding

Link to iteration 2 Figma

Image for Iteration 2

Image

Waiting on stakeholder feedback

@NilakshiS NilakshiS moved this from Questions/Clarifications to In progress (actively working) in P: TDM: project board Oct 3, 2024
@NilakshiS
Copy link
Member Author

Current slide is approved by stakeholders, but we might need to add a multi-select dropdown from the filters to this list based on whatever's finalized

@NilakshiS NilakshiS added the Dependency Issues that cannot be worked on until another issue is closed label Oct 3, 2024
@NilakshiS NilakshiS moved this from In progress (actively working) to Ice Box in P: TDM: project board Oct 3, 2024
@thetanmancan thetanmancan moved this from Visual Review to Questions/Clarifications in P: TDM: project board Jan 6, 2025
@ExperimentsInHonesty
Copy link
Member

@thetanmancan This issue has a 'waiting for stakeholder label' but the last comment you made is for NilakshiS. I see this issue is in the deck with an image with a horizontal scroll... so I am confused.

@NilakshiS
Copy link
Member Author

NilakshiS commented Jan 8, 2025

Hi @thetanmancan I referenced an old image for the design, but I see a horizontal scrollbar on the dev site. It's a bit inconsistent, there's one on the admin notes filter, however I don't see any on address filters. I can remove the horizontal scrollbar, but I'm not sure how we're planning on handling longer text, or do we not expect data longer than two lines?

Here's some examples from the dev site where the longer text wraps:

Horizontal scrollbar on the admin notes

The checkbox size is the same here, but the wrapped text is middle aligned to the checkbox

image

The checkbox is smaller here,

image

No scrollbar on address column

The checkbox size is the smaller here and the wrapped text is middle aligned to the checkbox

image

@thetanmancan
Copy link
Member

thetanmancan commented Jan 8, 2025

@NilakshiS I tested Admin Notes filter and did not see a horizontal scroll bar, even when I zoomed in on my browser.

Check it out

However, how the overlay behaves right now might not be a relevant conversation because I think how we're dealing with text strings in filter overlays is going to be changed. At least for some columns, there will be a 25-character limit in the width of the filter overlays according to #1651 , after which an ellipsis will be added and the rest of the text will be cut off. I will ask John at today's meeting about whether that limit is meant to apply to all column filters. If it is, the horizontal scroll bar won't be relevant, but even if it isn't, I think the text will still end up wrapping like it is now, in which case the horizontal scroll bar still won't be relevant, but I will have to confirm with John.

If we end up not having a horizontal scroll bar, we can remove it from the design system and I'll run that by the stakeholders in our next meeting. As for the vertical scroll bar, that's determined by the browser anyways, right? Or can our site dictate how that looks?

@thetanmancan thetanmancan moved this from Questions/Clarifications to In progress (actively working) in P: TDM: project board Jan 12, 2025
@thetanmancan

This comment has been minimized.

@thetanmancan thetanmancan moved this from In progress (actively working) to Questions/Clarifications in P: TDM: project board Jan 15, 2025
@thetanmancan thetanmancan moved this from Questions/Clarifications to In progress (actively working) in P: TDM: project board Jan 17, 2025
@thetanmancan
Copy link
Member

thetanmancan commented Jan 17, 2025

Hi @NilakshiS. Due to the advent of #2043, it seems like horizontal scroll bars will not be necessary for lists of nested checkboxes, so I removed the horizontal scrollbar from our design system mockup.

No horizontal scroll bar

Image

I also noticed that the mockup includes dropshadow on the list of checkboxes, but the inclusion of dropshadow is inconsistent with the other components being shown in the same section on the style guide, and the doesn't seem to be included anywhere in the implementation of the list of checkboxes on the Dev site. Therefore, I'm removing the dropshadow unless you tell me that it needs to be there for some reason.

If you think the 25-character limit within lists of nested checkboxes is something we should include in the style guide, please let me know and I'll make an issue for it. Thanks.

@thetanmancan thetanmancan moved this from In progress (actively working) to Visual Review in P: TDM: project board Jan 17, 2025
@thetanmancan
Copy link
Member

Hi @NilakshiS. I noticed while testing these styles in the Dev site that we use two different colors for each of the components listed: one upon hover and one upon selection. This highlights a number of problems with our style guide.

  1. With the exception of dropdowns, none of the components in the "Radio buttons, checkboxes, and dropdowns" section of the style guide list a color for hover and a color for selected.
  2. The color "Radio button default" that we have in Figma is not listed in the color palette.
  3. The selection color for dropdowns is different than the one used for radio buttons and checkboxes. Is this inconsistency intentional?

Could you please reconcile these issues in the design system? I'll move this issue back to In Progress in the meanwhile. Thank you.

@thetanmancan thetanmancan moved this from Visual Review to In progress (actively working) in P: TDM: project board Jan 19, 2025
@NilakshiS
Copy link
Member Author

NilakshiS commented Jan 20, 2025

Hi @thetanmancan thank you for the updates and making those changes!

  • I suppose the dropshadow got carried over from older designs and I didn't notice, thanks for catching that!
  • About the 25-character limit, I know this number was discussed in the meetings but I do not see it anywhere on the dev issue Fix problem with filtering long text in Admin Notes filter pop-up #2043 . If we're sure that this will be the character limit for all the nested checkboxes displays, we can add it to the style guide. I don't think it needs a new issue, it's related to this issue so I'll add it once the limit is confirmed.
  • About the different colors and hover styles for these components, these are the default dev styles and we decided they looked good as they are, instead of using the colors from the color palette. Check the comment here for more info. The reason why I added "Radio button default" was to match these styles, these designs are not custom and left to dev implementation, so I decided to not add this to our color palette.

However, now that I rechecked these, I realized that there has been a mistake, I was under the assumption that these are ReactJS styles (which would look the same across browsers) but instead these are browser native styles. The design as it currently looks is how it looks on Chrome Browser running on windows OS.

Radio Buttons and Checkbox on different browsers
  • On Chrome, Windows OS:
    Image

  • On Edge, Windows OS:
    Image

  • Note: Checkboxes have the same default color as radio buttons, so they are being hovered on to show the Hover state style

  • The next steps could be either to customize these like how we did for dropdowns (that's the reason why they have a different selection color, check Bug: Select Drop-Downs have different styling on different operating systems and browsers. #1785) or remove these from the design system, since the design is dependent on the browser.
    • On side note, you are right about missing hover state designs, they are in mockups but I missed adding them to the slide. If we decide to customize, I'll add the hover state design for all of them.

@thetanmancan
Copy link
Member

Hi @NilakshiS.

  • In the comment section of Fix problem with filtering long text in Admin Notes filter pop-up #2043, I addressed John with a question about the specifics of the 25-character limit, which is detailed in the first comment of the issue. Once he answers, I'll let you know so that you can update the style guide.
  • It seems pretty clear to me that we need to have a design for radio buttons and checkboxes across browsers, not only because it looks like radio buttons and checkboxes are grayed out when they are selected on Edge, but also because there should be some color consistency between dropdowns and radio buttons and checkboxes. Do you think this is something we need to run by production and development before developing mockups?
  • I don't see any mockups for hover state designs in the Figma style guide, or at least not for radio buttons an checkboxes. Can you point them out to me?

@thetanmancan thetanmancan moved this from In progress (actively working) to Questions/Clarifications in P: TDM: project board Jan 22, 2025
@ExperimentsInHonesty ExperimentsInHonesty moved this from Questions/Clarifications to In progress (actively working) in P: TDM: project board Jan 23, 2025
@thetanmancan thetanmancan added the Dependency Issues that cannot be worked on until another issue is closed label Jan 27, 2025
@thetanmancan thetanmancan moved this from In progress (actively working) to Ice Box in P: TDM: project board Jan 27, 2025
@thetanmancan
Copy link
Member

thetanmancan commented Jan 27, 2025

To address the above comment:

@thetanmancan thetanmancan moved this from Ice Box to In progress (actively working) in P: TDM: project board Jan 30, 2025
@thetanmancan thetanmancan marked this as a duplicate of #2072 Jan 30, 2025
@thetanmancan thetanmancan removed the Dependency Issues that cannot be worked on until another issue is closed label Jan 30, 2025
@ExperimentsInHonesty
Copy link
Member

@NilakshiS Now that we have clarified scope, please provide update

  1. Progress: "What is the current status of your project? What have you completed and what is left to do?"
  2. Blockers: "Difficulties or errors encountered."
  3. Availability: "How much time will you have this week to work on this issue?"
  4. ETA: "When do you expect this issue to be completed?"
  5. Pictures or links* (if necessary): "Add any pictures or links that will help illustrate what you are working on."
  • remember to add links to the top of the issue if they are going to be needed again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: In progress (actively working)
Development

No branches or pull requests

3 participants