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

refactor(theme): to make the link underline style configurable via a prop #253

Merged
merged 1 commit into from
Jan 29, 2020

Conversation

emmenko
Copy link
Member

@emmenko emmenko commented Jan 29, 2020

This helps to avoid having to override styles directly, but instead changing the appearance via a prop.

@vercel
Copy link

vercel bot commented Jan 29, 2020

This pull request is being automatically deployed with ZEIT Now (learn more).
To see the status of your deployment, click below or on the icon next to each commit.

🔍 Inspect: https://zeit.co/commercetools/commercetools-docs-kit/kfrbxtp3y
✅ Preview: https://commercetools-docs-kit-git-nm-fix-link-underline-style.commercetools.now.sh

@emmenko emmenko added the 💅 Type: Enhancement Improves existing code label Jan 29, 2020
@@ -39,7 +38,7 @@ const getStyles = props => {
const BetaFlag = props => {
if (props.href) {
return (
<Link href={props.href} css={getStyles(props)}>
<Link href={props.href} noUnderline={true} css={getStyles(props)}>
Copy link
Member Author

Choose a reason for hiding this comment

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

FYI: the prop is called noUnderline on purpose, because the default behavior should be with underline and you can decide to explicitly opt-out.

@vercel vercel bot temporarily deployed to Preview January 29, 2020 16:23 Inactive
@emmenko emmenko merged commit dd0acf2 into master Jan 29, 2020
@emmenko emmenko deleted the nm-fix-link-underline-style branch January 29, 2020 19:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
💅 Type: Enhancement Improves existing code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant