-
-
Notifications
You must be signed in to change notification settings - Fork 122
feat: componetize h1 h2 #307
feat: componetize h1 h2 #307
Conversation
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
kkrishguptaa
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I fail to understand the need of a heading component with the isAuth prop; I think we could use default heading styles, but I don't understand why do we need a heading component which is different for auth
|
h2 for auth pages I made isAuth since it doesn't have tracking-tight(letter-spacing) and sm:text-4xl. I think it's better to use H2 for all the h2 for the formality. Possible Soulutions
What solution do you think is better? @xkrishguptaa |
|
question for discussion - does it really make sense to make a component for something that just needs universal styling? What is the otehr benefit over simply creating styles that affect all h1,h2.... or anyhting else we want styles for in the app that differ from the defaults tailwind offers? |
One benefit is to avoid repeating the same classes over and over. I did the same kind of task before because my project leader wanted to add animation to the heading. We just needed to animate one time inside the component. I think it's better to ask @eddiejaoude what he thinks. |
Apologies for not being more clear. I mean, updating what our headers look like at the base style level in tailwind. Creating header components feels like over-engineering to me when it's just for basic styles like font size. Applying base style in tailwind Definitely agree we need one place where changes flow throughout the app, whether a stylesheet update or a component. |
|
Thanks for clarifying, Amanda. Using base style in Tailwind seems a good strategy. |
|
Great collaboration everyone 💪 my thoughts...
|
|
Great. I will check what default style works fine for h1 and h2, and update my pull request. |
Thank you 👍 I think use the style from the standard pages (because we won't really have any auth pages in this app) |
|
I tried to incorporate what Eddie said here. Here is what I do.
|
|
Looks good 👍 I would love to get some other maintainers feedback also
yes please raise an issue for this, we should remove these unused files 💯 |
…. Removed id props from H2 component.
kkrishguptaa
left a comment
There was a problem hiding this 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! Thank you
Fixes Issue
closes #301
Changes proposed
[x] - Created Heading.jsx for H1 and H2 components
[x] - Replace all the h1 and h2 tags with the newly created components
Check List (Check all the applicable boxes)
Screenshots
Note to reviewers
I checked if classes of each element match with the original classes.