Skip to content

Conversation

@yurm04
Copy link
Contributor

@yurm04 yurm04 commented Nov 12, 2021

Description

While working through #4592 I found the $button-filled mixin had some parameters that weren't being used. Decided to clean up the mixin and simplify the Button style by creating a joint .primary, .destructive style.

co-authored with @alex-page

@ghost
Copy link

ghost commented Nov 12, 2021

👋 Thanks for opening your first pull request. A contributor should give feedback soon. If you haven’t already, please check out the contributing guidelines.

color: var(--p-text-disabled);
}

@mixin button-filled($button-color, $focus-color, $outline-color: null) {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

these parameters aren't being used anywhere, removing

@github-actions
Copy link
Contributor

github-actions bot commented Nov 12, 2021

size-limit report

Path Size
cjs 166.08 KB (0%)
esm 96.63 KB (0%)
esnext 143.47 KB (-0.02% 🔽)
css 34.52 KB (-0.02% 🔽)

@yurm04 yurm04 requested a review from alex-page November 12, 2021 18:00
@yurm04 yurm04 changed the title [Button] Clean up button styling [Button] Clean up Button styling and $button-filled mixin Nov 12, 2021
Copy link
Member

@alex-page alex-page left a comment

Choose a reason for hiding this comment

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

Legend

@yurm04 yurm04 merged commit df8affe into main Nov 15, 2021
@yurm04 yurm04 deleted the button-component-style-cleanup branch November 15, 2021 20:43
@ghost
Copy link

ghost commented Nov 15, 2021

🎉 Thanks for your contribution to Polaris React!

yurm04 pushed a commit that referenced this pull request Nov 16, 2021
* removing all color() references

* reverting button component changes because they're being addressed in #4635

* updating changelog

* hardcoding background color value in app provider

* removing color-icon sass function because not in use

* adding stylelint disable line because we have to hardcode a value

* revert remove color-icon function
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.

2 participants