-
Notifications
You must be signed in to change notification settings - Fork 18
feat(Dropdowns): Clockface 4 dropdown updates #876
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
Changes from all commits
54bc89c
1049876
01b5c45
64c59bb
0b4004a
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -43,6 +43,7 @@ $dropdown-item--padding-v: $cf-space-2xs; | |
| border-radius: $cf-radius; | ||
| box-shadow: 0 2px 5px 0.6px rgba($g0-obsidian, 0.2); | ||
| padding: $cf-space-2xs; | ||
| border: rgba(255, 255, 255, 0.05) solid $cf-border; | ||
| } | ||
|
|
||
| .cf-dropdown-menu--contents { | ||
|
|
@@ -52,6 +53,8 @@ $dropdown-item--padding-v: $cf-space-2xs; | |
| flex-direction: column; | ||
| align-items: stretch; | ||
| cursor: pointer; | ||
| margin-right: 2px; | ||
| margin-left: 1px; | ||
|
Comment on lines
+56
to
+57
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. These two stick out, but they're just to please the
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Can this be solved using
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Got you! I'll try that!
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This was always a problem, but we never noticed because we didn't use There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. is it causing problems to have the border? julia and i also discussed maybe not needing a background color at all on selected items. we included it because that's what we have now—adjusted to be lower contrast so it's less distracting—but i think the selected state for the radio buttons and checkboxes has enough contrast that we might not need the background color+border as well. let me know what you think. @ChitlangeSahas @hoorayimhelping @juliajames12
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Currently I implemented it in the way figma looks, with no issues. But if we decide to remove the border+background, let me know I can make a future ticket and address that! 👍 There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. talked to sahas—it's a big of a bigger project to reevaluate these, so we'll keep it as-is for now and tweak it later if we find we need to once we test it out |
||
| } | ||
|
|
||
| /* | ||
|
|
@@ -69,10 +72,18 @@ $dropdown-item--padding-v: $cf-space-2xs; | |
| .cf-dropdown-divider { | ||
| @include dropdownItemStyles(); | ||
| font-weight: $cf-font-weight--medium; | ||
| text-transform: uppercase; | ||
| color: #88889b; | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Since this is just a divider - does
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Gotcha - thanks! |
||
| padding-bottom: 4px; | ||
| border-bottom: $cf-grey-4 1px solid; | ||
| margin-bottom: 4px; | ||
|
|
||
| &.line { | ||
| padding: 0; | ||
| height: $cf-border; | ||
| background: $cf-grey-4; | ||
| margin: 8px 0 4px; | ||
| width: 100%; | ||
| } | ||
|
|
||
| &:hover { | ||
|
|
@@ -85,6 +96,7 @@ $dropdown-item--padding-v: $cf-space-2xs; | |
| color: $g20-white; | ||
| position: relative; | ||
| border-radius: $cf-radius; | ||
| margin-top: $cf-space-3xs; | ||
|
|
||
| &.cf-dropdown-link-item { | ||
| padding: 0; | ||
|
|
@@ -287,12 +299,14 @@ $dropdown-item--padding-v: $cf-space-2xs; | |
|
|
||
| .cf-dropdown-item:not(.cf-dropdown-item__disabled):hover, | ||
| .cf-dropdown-item:not(.cf-dropdown-item__disabled):focus { | ||
| background-color: rgba($cf-grey-95, 0.1); | ||
| background-color: rgba($cf-grey-95, 0.09); | ||
| outline: none; | ||
| } | ||
|
|
||
| .cf-dropdown-item.active:not(.cf-dropdown-item__disabled) { | ||
| background-color: $active; | ||
| background-color: $cf-martinique; | ||
| border: 1px $cf-lavender solid; | ||
| border-radius: $cf-border; | ||
| } | ||
| } | ||
|
|
||
|
|
@@ -309,7 +323,7 @@ $dropdown-item--padding-v: $cf-space-2xs; | |
| } | ||
|
|
||
| .cf-dropdown__onyx { | ||
| @include dropdownMenuColor($c-pool); | ||
| @include dropdownMenuColor($cf-lavender); | ||
| } | ||
|
|
||
| .cf-dropdown__none { | ||
|
|
||



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.
Just ran prettier, hence the diff.