-
Notifications
You must be signed in to change notification settings - Fork 21
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
Implement design system buttons #304
Implement design system buttons #304
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.
Quick notes:
-
View environment: there is a slight shade difference (now) between the first environment and the rest. Is this a hover state? If so, this might need tweaking as the change is barely noticeable
-
Edit environment:
- The
Requested packages
section has a green border - it should be gray - The toggle button (white) almost blends with the background. There is a shadow, but it is not enough to make it stand out. Can we add a border instead? @smeragoel
- Same with the active env dropdown, this has an extra green border
- The
-
There is not enough contrast on the disabled buttons (text vs background) - thought disabled buttons would be gray? @smeragoel
- I am +1 on underlining links and items on focus - though the underline is correct against the text. Can we add an underlined offset?
This is what we have on PST, and it works well because it scales accordingly.
// Define some useful variables for links styling consistency
//
// Thickness of the underline for links
// the default will be either:
// - 1px
// - 0.0625rem if it's thicker than 1px because the user has changed the text
// size in their browser
$link-underline-thickness: unquote("max(1px, .0625rem)") !default;
// Offset of link underlines from text baseline
// The default is 3px expressed as ems, as calculated against the default body
// font size (on desktop).
$link-underline-offset: 0.1578em !default;
This is based on the screenshots @steff456, as I only had a glance at the code. But from this quick glance it looks already much better in terms of maintainability ✨ thank you
I didn't add this component to the design system, but I will.
Okay, I will tweak the design so it's visible.
They were supposed to be, but because of the greyscale design version, I used a lighter green. Let me work on a fix.
I have added the offset to the designs as well! |
I think we can keep the disabled buttons gray here since this is the "default theme" and deal with the gray theme as the customisation it is |
Here's the new design for the toggle switch: https://www.figma.com/file/nKifk755TFMsK2SF082igS/conda-store-UI-design?type=design&node-id=1390%3A1571&mode=design&t=Pp6IQLDsLqaq4wps-1 Right now the toggle switch implies off/on states, which is not the most accurate signal to send, since we are just switching between interaction modes. I looked at examples from https://mui.com/material-ui/react-switch/ and used them as inspiration for the switch. I also added clearer labels and interaction states. The icons (especially the gear for UI) and the content of the labels (GUI?) is up for discussion. |
I like these a lot - I prefer the one with the
|
The latest commit fixes the disabled state and the hover style for buttons using the new guidelines. It has some work in progress for the switch button, but this PR still needs more changes that I will work on after coming back from PTO. |
@trallard @smeragoel I just pushed the changes that address all the comments. I also updated the screenshots of all the views in the description and added the switch toggle states to it. I just want to note that I'm unsure on the style of the dropdown menu style, so this PR only changed the style of the This PR is ready for another review! |
I think this should be reviewed by @smeragoel before merging. |
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.
One thing I noticed in the sidebar is that the bullets and the environment names are in green when it should be dark grey (secondary-800
) by default.
Figma Link
This PR is only focusing on the buttons, I'm currently working in a follow up PR for styling the sidebar as you described in the comment. |
0d31098
into
conda-incubator:design-system-implementation
Part of #288
Description
This pull request:
Main buttons
Default
Hover
Focus
Disabled
Icon buttons
Default
Hover
Focus
Toggle switch
Default
Hover / Focus
Pull request checklist
Additional information
Screenshots
Before
After
View Environment
Before
After
Edit Environment
Before
After
Create Environment
Before
After