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

New Admin UI - Link Component #4440

Merged
merged 15 commits into from
Dec 18, 2024
Merged

New Admin UI - Link Component #4440

merged 15 commits into from
Dec 18, 2024

Conversation

adrians5j
Copy link
Member

@adrians5j adrians5j commented Dec 12, 2024

Changes

This PR introduces the Link component.

Extra Changes

1. Default Text/Link Styles

I updated the theme.scss file and added default styles for all text and links that were not rendered via Text/Link components, respectively. I tested this manually then in Admin area.

image

Previously, we had this:
image

2. Alert Links

Once I've added default styles for links, link in Alert boxes did not look as it's defined in Figma (links basically have the same styles as the text in the alert, except they're also bolded and underlined). So, I have to add a couple classes in there as well to preserve this.

image

3. Updated Tokens

I reimported tokens from Figma.

4. Colors With Alpha Were Still Imported

There were a couple color categories where ignoring colors with alpha/transparency was not added.

Those categories were: fill, ringColor, and textColor.

How Has This Been Tested?

Manually.

Documentation

Changelog.

@adrians5j adrians5j changed the base branch from next to feat/new-admin-ui December 12, 2024 10:39
@adrians5j
Copy link
Member Author

adrians5j commented Dec 12, 2024

This one is ready for review. The only thing I need to adjust is the [3px] ring size. Don't have a token for this, gonna get it probably next week since Kreso is absent tomo.

@adrians5j adrians5j marked this pull request as ready for review December 12, 2024 14:37

const linkVariants = cva("font-sans rounded-xs", {
variants: {
size: {
Copy link
Contributor

Choose a reason for hiding this comment

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

I'm not sure we need a size variant: the font size of a link should be inherited from its parent; otherwise, we would end up in this situation:

<Text size="lg">Lorem ipsum with <Link size="lg">link</Link> text.</Text>

declaring the size prop twice.

@adrians5j adrians5j merged commit b165a9b into feat/new-admin-ui Dec 18, 2024
16 checks passed
@adrians5j adrians5j deleted the feat/link branch January 7, 2025 07:56
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.

3 participants