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

Move some form styles to base.scss #2327

Merged
merged 3 commits into from
Dec 2, 2022
Merged

Move some form styles to base.scss #2327

merged 3 commits into from
Dec 2, 2022

Conversation

simurai
Copy link
Contributor

@simurai simurai commented Nov 25, 2022

What are you trying to accomplish?

This moves the

  • fieldset
  • label
  • ::placeholder

styles to base.scss.

What approach did you choose and why?

This is in support of primer/view_components#1638.

I think we shouldn't move all of the old form-control.scss styles to PVC. But specifically the fieldset + ::placeholder are still needed in PVC. So making them part of base.scss feels like a good approach to make them more broadly available. They also don't use a class but instead use the element as selector. So having them in base.scss seems a good place.

What should reviewers focus on?

Any alternative? We could also move it to normalize.scss

Can these changes ship as is?

  • Yes, this PR does not depend on additional changes. 🚢

@simurai simurai requested a review from a team as a code owner November 25, 2022 07:19
@simurai simurai requested a review from tobiasahlin November 25, 2022 07:19
@changeset-bot
Copy link

changeset-bot bot commented Nov 25, 2022

🦋 Changeset detected

Latest commit: 171b415

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

This PR includes changesets to release 1 package
Name Type
@primer/css 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

@github-actions github-actions bot temporarily deployed to Storybook Preview November 25, 2022 07:26 Inactive
@simurai simurai temporarily deployed to github-pages November 25, 2022 07:29 Inactive
@github-actions github-actions bot temporarily deployed to Storybook Preview November 25, 2022 07:29 Inactive
@simurai simurai changed the title Move fieldset + label styles to base.scss Move some form styles to base.scss Nov 25, 2022
@github-actions github-actions bot temporarily deployed to Storybook Preview November 25, 2022 09:24 Inactive
@simurai simurai merged commit 8cf13e9 into main Dec 2, 2022
@simurai simurai deleted the form-control branch December 2, 2022 01:59
@primer-css primer-css mentioned this pull request Dec 2, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants