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

feat: moving generated code away from static vars #1342

Merged
merged 2 commits into from
Jan 5, 2022

Conversation

GarthDB
Copy link
Member

@GarthDB GarthDB commented Jan 4, 2022

Description

Removed static aliases in the generated button CSS.

How and where has this been tested?

  • How this was tested:
  • Browser(s) and OS(s) this was tested with:

Screenshots

To-do list

  • If my change impacts other components, I have tested to make sure they don't break.
  • If my change impacts documentation, I have updated the documentation accordingly.
  • I have read the CONTRIBUTING document.
  • This pull request is ready to merge.

components/button/skin.css Outdated Show resolved Hide resolved
components/button/skin.css Outdated Show resolved Hide resolved
Copy link
Member

@lazd lazd left a comment

Choose a reason for hiding this comment

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

Looks good to me! This must've been a fair amount of work, thanks @GarthDB!

Copy link
Collaborator

@pfulton pfulton left a comment

Choose a reason for hiding this comment

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

Ran this locally, and things are looking good! Thanks, @GarthDB

Copy link
Member

@lazd lazd left a comment

Choose a reason for hiding this comment

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

One quick thing: it's missing the purple accent color. Suggest referencing the following aliases to bring it back:

var(--spectrum-semantic-cta-background-color-default)
var(--spectrum-semantic-cta-background-color-down)
var(--spectrum-semantic-cta-background-color-hover)
var(--spectrum-semantic-cta-background-color-key-focus)

@GarthDB GarthDB force-pushed the button-api-aliases branch from cf262e6 to 9a5bfe4 Compare January 5, 2022 17:31
Copy link
Member

@lazd lazd left a comment

Choose a reason for hiding this comment

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

Just tested the Accent changes locally, this looks good!

@lazd lazd merged commit e8ed59e into button-api Jan 5, 2022
GarthDB added a commit that referenced this pull request Jan 5, 2022
@GarthDB GarthDB deleted the button-api-aliases branch April 28, 2022 21:02
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