Skip to content

Move some form styles to base.scss#2327

Merged
simurai merged 3 commits intomainfrom
form-control
Dec 2, 2022
Merged

Move some form styles to base.scss#2327
simurai merged 3 commits intomainfrom
form-control

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