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

Add tabs variants and remove blur #501

Merged
merged 5 commits into from
Oct 27, 2023

Conversation

prichodko
Copy link
Collaborator

@prichodko prichodko commented Oct 27, 2023

I opted-in into explicitly declaring a variant because there is no obvious "default". WDYT?

Removing backdrop-blur because of unexpected issues it is causing (example in the video):

Screen.Recording.2023-10-27.at.12.24.09.mov

@changeset-bot
Copy link

changeset-bot bot commented Oct 27, 2023

🦋 Changeset detected

Latest commit: 0cf747f

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@status-im/components Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@vercel
Copy link

vercel bot commented Oct 27, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
status-components 🔄 Building (Inspect) Visit Preview Oct 27, 2023 0:13am
status-web 🔄 Building (Inspect) Visit Preview Oct 27, 2023 0:13am

@vercel
Copy link

vercel bot commented Oct 27, 2023

@prichodko is attempting to deploy a commit to the Status Team on Vercel.

A member of the Team first needs to authorize it.

backgroundColor: '$neutral-20',
},
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I couldn't figure out how to fix this error in Tamagui, even though it's a valid syntax.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Giving the function a type explicitly breaks type inference.

Copy link
Collaborator

@marcelines marcelines left a comment

Choose a reason for hiding this comment

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

Approved. Left 2 comments. Not blockers.

default: '$neutral-100',
hover: '$neutral-100',
press: '$neutral-100',
default: variant === 'blur_darkGrey' ? '$white-100' : '$neutral-100',
Copy link
Collaborator

Choose a reason for hiding this comment

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

Can't we use a const for now to avoid repetition?

packages/components/src/tabs/tabs.tsx Show resolved Hide resolved
@prichodko prichodko merged commit 7afc447 into status-im:main Oct 27, 2023
2 of 4 checks passed
@prichodko prichodko deleted the f/tabs-variants branch October 27, 2023 15:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants