Skip to content

feat(ui-components): create Link component - #46105

Merged
ahmaxed merged 2 commits into
freeCodeCamp:mainfrom
huyenltnguyen:feat/link-component
May 23, 2022
Merged

ahmaxed merged 2 commits into
freeCodeCamp:mainfrom
huyenltnguyen:feat/link-component

Conversation

@huyenltnguyen

Copy link
Copy Markdown
Member

Checklist:

  • I have read freeCodeCamp's contribution guidelines.
  • My pull request has a descriptive title (not a vague title like Update index.md)
  • My pull request targets the main branch of freeCodeCamp.
  • I have tested these changes either locally on my machine, or GitPod.

This PR:

Screenshots

Default

State Light Dark
At rest Screen Shot 2022-05-22 at 03 40 05 Screen Shot 2022-05-22 at 03 20 27
Hovered Screen Shot 2022-05-22 at 03 20 12 Screen Shot 2022-05-22 at 03 41 18

Block

State Light Dark
At rest Screen Shot 2022-05-22 at 03 42 24 Screen Shot 2022-05-22 at 03 42 34
Hovered Screen Shot 2022-05-22 at 03 20 02 Screen Shot 2022-05-22 at 03 19 51

@huyenltnguyen
huyenltnguyen requested a review from a team May 21, 2022 20:48
@gitpod-io

gitpod-io Bot commented May 21, 2022

Copy link
Copy Markdown

@github-actions github-actions Bot added the scope: tools/scripts Scripts for supporting dev work, generating config and build artifacts, etc. label May 21, 2022
@huyenltnguyen huyenltnguyen mentioned this pull request May 21, 2022
37 of 49 tasks
@ghost

ghost commented May 21, 2022

Copy link
Copy Markdown

👀 Review this PR in a CodeSee Review Map

View the CodeSee Map of this change

Review these changes using an interactive CodeSee Map

Legend

CodeSee Map Legend

Comment on lines +3 to +9
@layer base {
/* Override Tailwind's default `text-decoration` rule. */
/* https://github.com/tailwindlabs/tailwindcss/blob/master/src/css/preflight.css#L85 */
a {
@apply underline;
}
}

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

There doesn't seem to be an option to override the style in tailwind.config.js, so I followed this doc instead: https://tailwindcss.com/docs/preflight#extending-preflight

@ahmaxed

ahmaxed commented May 23, 2022

Copy link
Copy Markdown
Member

Thanks for the pr. The block could be a radio button in the story. Maybe we could open a first timer issue to resolve that.

@ahmaxed
ahmaxed merged commit 92e496c into freeCodeCamp:main May 23, 2022
@ahmaxed

ahmaxed commented May 23, 2022

Copy link
Copy Markdown
Member

LGBT. Nitpick: The block prop could be displayed as a radio button in the Story.

@huyenltnguyen
huyenltnguyen deleted the feat/link-component branch May 23, 2022 16:09
@huyenltnguyen

Copy link
Copy Markdown
Member Author

This is the next thing I'm going to look into actually. I expect that Storybook would automatically display a toggle control for boolean props, but I'm not sure why it doesn't pick up the type correctly.

The block control should look similar to the primary control in this screenshot (which I took from Storybook documentation page):

Screen Shot 2022-05-23 at 23 14 44

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

scope: tools/scripts Scripts for supporting dev work, generating config and build artifacts, etc.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants