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

Optimize striped table component for dark theme and fix caption color #1242

Merged
merged 1 commit into from
May 26, 2021

Conversation

AriannaChau
Copy link
Contributor

@AriannaChau AriannaChau commented May 26, 2021

Overview

There was an issue where the striped variation of the table component didn't look right on the dark theme. The caption of the table also remained a dark gray on the dark theme as well. This PR changes the stripes from a light gray to a dark blue and changes the caption color to a lighter gray.

Screenshots

Screen Shot 2021-05-26 at 3 50 42 PM

Testing

  1. Deploy link

@changeset-bot
Copy link

changeset-bot bot commented May 26, 2021

⚠️ No Changeset found

Latest commit: 945489a

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

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

@AriannaChau
Copy link
Contributor Author

Hey @spaceninja, I was wondering if you could review this. Paul brought up the issue but he's gone for the day and I'm not sure if I named the variables in the best way. :/

@AriannaChau AriannaChau marked this pull request as ready for review May 26, 2021 23:05
Copy link
Member

@spaceninja spaceninja left a comment

Choose a reason for hiding this comment

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

The code is good.

As for the custom property name, I don't think we've settled on a standard yet for colors that change based on the theme.

We're supposed to name things in increasing order of specificity, so color-table-striped is good. We've been using theme as a way to indicate this color responds to the light/dark theme, but it's unclear where they should be in the naming order.

I've used color-theme in the past, but I don't think that's required.

If you're concerned about it, I'd wait to see what @Paul-Hebert thinks in the morning, but I'd also be happy with merging this as-is, since we don't have an agreed-upon standard for naming these color properties yet.

@AriannaChau AriannaChau merged commit 3c42a3c into v-next May 26, 2021
gerardo-rodriguez added a commit that referenced this pull request Jun 1, 2021
…into feature/button-group-object

* 'v-next' of github.com:cloudfour/cloudfour.com-patterns:
  Fix broken documentation links (#1248)
  Test Mule -> Pleasantest (#1246)
  Update dependency postcss-loader to v4.3.0
  Update dependency postcss to v8.3.0
  Update dependency eslint to v7.27.0
  Fix storybook implicit postcss deprecation warning (#1245)
  Add new card variation prototype (#1241)
  Add animation to sky nav (#1239)
  Optimize striped table component for dark theme and fix caption color (#1242)
  Update dependency rollup-plugin-dts to v3.0.2 (#1236)

# Conflicts:
#	src/components/button/button.stories.mdx
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.

Optimize Table component for dark theme
2 participants