-
Notifications
You must be signed in to change notification settings - Fork 3
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
[UXIT-2039] Upgrade to Tailwind V4 [skip percy] #1077
base: main
Are you sure you want to change the base?
Conversation
The latest updates on your projects. Learn more about Vercel for Git βοΈ
|
e34d136
to
055ff44
Compare
055ff44
to
96fb847
Compare
96fb847
to
3c1ba96
Compare
Also, I don't know if it's on my side, but the laptop view seems to be broken on Safari (16.1 version) - it's showing mobile layout on every screen size? |
@layer components { | ||
.text-link { | ||
@apply text-brand-300; | ||
|
||
&:hover { | ||
@apply underline; | ||
} | ||
|
||
&:focus { | ||
@apply brand-outline; | ||
} | ||
} |
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.
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.
As discussed earlier, not sure how to override this differently at the moment.
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.
We could potentially use !
- I know we generally want to avoid !important
, but in this case we want to overwrite an imported library so maybe it's justified? In that case we could get rid of --tw-prose-links
and have 1 class responsible for all links. Just an idea.
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.
Maybe adding not-prose
to our custom link?
// MarkdownLink in apps/site/src/app/_components/MarkdownContent.tsx
return (
<SmartTextLink href={href} className="not-prose">
{children}
</SmartTextLink>
)
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.
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.
We could potentially use ! - I know we generally want to avoid !important, but in this case we want to overwrite an imported library so maybe it's justified? In that case we could get rid of --tw-prose-links and have 1 class responsible for all links. Just an idea.
Where would you add this? @barbaraperic
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.
@CharlyMartin - That works. It's a bit odd to add not-prose
to something that is clearly prose
but, at least, it's clear where it's coming from?
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.
Done - e25b269 - What do you both think?
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.
Works for me! (It's a bit odd indeed but it's clear at least yes)
startDate: CalendarEventType['start']['dateTime'] | ||
} | ||
|
||
export function Calendar({ startDate }: CalendarProps) { |
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.
Sorry I seemed to missed this, we are temporarily not using this component? π€
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.
Yes - We have removed the Governance Community Call section per #1080
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.
Gotcha, thank you! Should we remove the component? Or the calls are planning to return?
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.
The component was already removed - So I'm guessing this is a conflict resolution issue. Thanks for catching.
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.
Done!
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.
Phew, big update! Thanks Mirha and Barbara for taking care of this!
I've left comments about things that I found confusing, not all of them may be relevant.
I'll have a second look tomorrow :)
5efed44
to
15c5654
Compare
15c5654
to
2da89ba
Compare
2da89ba
to
067b7e6
Compare
067b7e6
to
fbe4e21
Compare
246d9c2
to
4048a86
Compare
π Description
This PR upgrades the Tailwind configuration and aligns the project's styling approach with TailwindCSS 4 best practices.
π οΈ Key Changes
tailwind.config.js
toglobals.css
.globals.css
.text-link
andtoc-header
styles toglobals.css
, following Tailwind's recommendation against using CSS modules.tooltip.module.css
andtable.module.css
to plain css, following Tailwind's recommendation against using CSS modules.globals.css
under@utility prose
, based on this guidance.π Resources
__
Note