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

Adapt-1856: Misc v7 changes take 2 #808

Merged
merged 6 commits into from
Mar 3, 2021
Merged

Adapt-1856: Misc v7 changes take 2 #808

merged 6 commits into from
Mar 3, 2021

Conversation

yvonnetangsu
Copy link
Member

@yvonnetangsu yvonnetangsu commented Mar 2, 2021

READY FOR REVIEW

Summary

  • More misc additions to v7 - line height, border-radius, font-size, borderColor variants
  • Add su-basefont-21 for cases where e.g., a non-21px base font size is set on the <body> element but some section within the site need a su-basefont-21 override.
  • Add last and first variants for margin since we often set different margins for first-child and last-child, e.g., no margin-bottom on the last <li> in a <ul>
    https://tailwindcss.com/docs/hover-focus-and-other-states#last-child

Needed By (Date)

  • When does this need to be merged by?

Urgency

  • How critical is this PR?

Steps to Test

  1. Look at code
  2. Check that the preview build is not broken

Affected Projects or Products

  • Does this PR impact any particular projects, products, or modules?

Associated Issues and/or People

  • JIRA ticket
  • Other PRs
  • Any other contextual information that might be helpful (e.g., description of a bug that this PR fixes, new functionality that it adds, etc.)
  • Anyone who should be notified? (@mention them here)

See Also

… remove unused inputBase variable in base.js
@yvonnetangsu yvonnetangsu changed the title Add su-basefont-21 utility for sites where base font size isn't 21px;… Misc v7 changes take 2 Mar 2, 2021
@yvonnetangsu yvonnetangsu requested a review from sherakama March 2, 2021 08:53
@@ -4,7 +4,8 @@
module.exports = function () {
return {
'none': '0',
DEFAULT: '0.3rem', // form input border-radius
Copy link
Member

Choose a reason for hiding this comment

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

No more default? Why is this being removed?

Copy link
Member Author

Choose a reason for hiding this comment

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

I'm on the fence about this. It seems the 0.3rem is only used for input fields, so I feel like calling it our default might be a little misleading, but I could be convinced otherwise 😄

Copy link
Member

Choose a reason for hiding this comment

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

https://tailwindcss.com/docs/border-radius#border-radiuses

I still think we need to provide a DEFAULT option to tailwind. It is used in the su-rounded class. You can choose the sensible default that you like but I think we should still have one.

Copy link
Member Author

Choose a reason for hiding this comment

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

Sounds good - will have it =0.3rem then

Copy link
Member Author

Choose a reason for hiding this comment

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

Thinking about this... I'm not completely sure about the 7px radius on the local footer login button. Will talk to @kerri-augenstein and see if I can convince her to maybe have this also equal to 0.3rem 😄 - but that's for later.

@yvonnetangsu yvonnetangsu changed the title Misc v7 changes take 2 Adapt-1856 Misc v7 changes take 2 Mar 3, 2021
@yvonnetangsu yvonnetangsu requested a review from sherakama March 3, 2021 06:50
Copy link
Member

@sherakama sherakama left a comment

Choose a reason for hiding this comment

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

GTG

@sherakama sherakama changed the title Adapt-1856 Misc v7 changes take 2 Adapt-1856: Misc v7 changes take 2 Mar 3, 2021
@sherakama sherakama merged commit 585ed4e into v7 Mar 3, 2021
@sherakama sherakama deleted the ADAPT-000-misc2 branch March 3, 2021 06:52
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