- 
                Notifications
    
You must be signed in to change notification settings  - Fork 97
 
feat(drag-drop): adds light/dark mode colors #1805
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 7 commits
bfb4f58
              47c2de2
              aa48dc5
              66033e3
              17b5656
              bf4b07b
              18df789
              6cd2ccb
              49c25e5
              2fda125
              File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
| 
          
            
          
           | 
    @@ -6,7 +6,7 @@ | |||||
| */ | ||||||
| 
     | 
||||||
| import styled, { ThemeProps, DefaultTheme, css } from 'styled-components'; | ||||||
| import { retrieveComponentStyles, DEFAULT_THEME, getColorV8 } from '@zendeskgarden/react-theming'; | ||||||
| import { retrieveComponentStyles, DEFAULT_THEME, getColor } from '@zendeskgarden/react-theming'; | ||||||
| 
     | 
||||||
| const COMPONENT_ID = 'draggable_list.drop_indicator'; | ||||||
| 
     | 
||||||
| 
        
          
        
         | 
    @@ -16,15 +16,14 @@ export interface IStyledDropIndicatorProps extends ThemeProps<DefaultTheme> { | |||||
| 
     | 
||||||
| const colorStyles = (props: IStyledDropIndicatorProps) => { | ||||||
| const { theme } = props; | ||||||
| const backgroundColor = getColorV8('primaryHue', 600, theme); | ||||||
| const color = getColorV8('primaryHue', 600, theme); | ||||||
| const color = getColor({ variable: 'foreground.primary', theme }); | ||||||
                
       | 
||||||
| const color = getColor({ variable: 'foreground.primary', theme }); | |
| const color = getColor({ variable: 'border.primaryEmphasis', theme }); | 
I'm not seeing this in the designs, but semantically it feels a lot more like a border; conversely, I wouldn't expect this to change if the foreground was modified.
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.
That's fair. I was teetering between fg and border, anyway. :)
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.
[nit] Garden never uses bold; should probably be styled with
font-weight: ${p => p.theme.fontWeights.semibold};. Also, take care re: semantics of<strong>(add importance to) vs<b>(bring attention to).Uh oh!
There was an error while loading. Please reload this page.
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.
I also just realized I can convert the former
pto a more semantically correcth2, and leave the JSX alone.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.
[nit] the
h2still has the bold font weight problem. Would it be better to use Garden's<LG tag="h2">typography component? We just don't want to confuse any consumers that view the pattern.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.
Yeah that makes sense. I'll update.