Skip to content

Implement functional color variables part 3 [CounterLabel, Dialog, Dropdown, DropdownStyles, FilterList]#1099

Merged
colebemis merged 14 commits into
mainfrom
VanAnderson/implement-functional-color-vars-3
Mar 4, 2021
Merged

Implement functional color variables part 3 [CounterLabel, Dialog, Dropdown, DropdownStyles, FilterList]#1099
colebemis merged 14 commits into
mainfrom
VanAnderson/implement-functional-color-vars-3

Conversation

@VanAnderson

Copy link
Copy Markdown
Contributor

This PR updates the following components to use functional color variables in preparation for color mode support:

  • CounterLabel
  • Dialog
  • Dropdown
  • DropdownStyles
  • FilterList

Part of https://github.com/github/design-systems/issues/1219

@changeset-bot

changeset-bot Bot commented Mar 2, 2021

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 29e2b5e

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@primer/components Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@vercel

vercel Bot commented Mar 2, 2021

Copy link
Copy Markdown

This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployment, click below or on the icon next to each commit.

🔍 Inspect: https://vercel.com/primer/primer-components/5g11aGBic5rYbvQTN7GesQ83zaat
✅ Preview: https://primer-compone-git-vananderson-implement-functional-colo-314477.vercel.app

@VanAnderson VanAnderson force-pushed the VanAnderson/implement-functional-color-vars-3 branch from 0403e05 to 53c97b9 Compare March 2, 2021 16:22
@vercel vercel Bot temporarily deployed to Preview March 2, 2021 16:22 Inactive
Comment thread src/Dialog.tsx

const DialogBase = styled.div<StyledDialogBaseProps>`
box-shadow: 0px 4px 32px rgba(0, 0, 0, 0.35);
box-shadow: ${get('shadows.shadow.large')};

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

couldn't find a primer/css file for dialog, so I'm guessing at some of these. Dark mode doesn't seem quite right:

image

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@vercel vercel Bot temporarily deployed to Preview March 2, 2021 17:42 Inactive
@VanAnderson VanAnderson marked this pull request as ready for review March 2, 2021 17:42
@vercel vercel Bot temporarily deployed to Preview March 2, 2021 17:45 Inactive
@vercel vercel Bot temporarily deployed to Preview March 2, 2021 18:17 Inactive
@vercel vercel Bot temporarily deployed to Preview March 2, 2021 18:37 Inactive

@bscofield bscofield left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@VanAnderson VanAnderson force-pushed the VanAnderson/implement-functional-color-vars-3 branch from c05fa44 to f8dce3a Compare March 3, 2021 17:32
@vercel vercel Bot temporarily deployed to Preview March 3, 2021 17:38 Inactive
Comment thread src/FilterList.tsx
text-overflow: ellipsis;
white-space: nowrap;
cursor: pointer;
border-radius: ${get('radii.1')};

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
border-radius: ${get('radii.1')};
border-radius: ${get('radii.2')};

@colebemis colebemis left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looking good 😄 Just left a few suggestions

import {render as HTMLRender, cleanup} from '@testing-library/react'
import {axe, toHaveNoViolations} from 'jest-axe'
import 'babel-polyfill'
import {default as primitives} from '@primer/primitives'

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Instead of importing from primitives we can import the theme:

- import {default as primitives} from '@primer/primitives'
+ import theme from '../theme'

That might make values easier to reference in the tests

Comment thread src/Dialog.tsx

const DialogBase = styled.div<StyledDialogBaseProps>`
box-shadow: 0px 4px 32px rgba(0, 0, 0, 0.35);
box-shadow: ${get('shadows.shadow.large')};

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@vercel vercel Bot temporarily deployed to Preview March 4, 2021 16:20 Inactive
@vercel vercel Bot temporarily deployed to Preview March 4, 2021 17:07 Inactive
Comment thread src/Dialog.tsx Outdated
@vercel vercel Bot temporarily deployed to Preview March 4, 2021 17:11 Inactive
Comment thread src/Dialog.tsx Outdated
@vercel vercel Bot temporarily deployed to Preview March 4, 2021 17:17 Inactive
@vercel vercel Bot temporarily deployed to Preview March 4, 2021 17:32 Inactive
@colebemis colebemis merged commit e492340 into main Mar 4, 2021
@colebemis colebemis deleted the VanAnderson/implement-functional-color-vars-3 branch March 4, 2021 17:47
@github-actions github-actions Bot mentioned this pull request Mar 4, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants