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

feat: pretty filter labels #2911

Draft
wants to merge 11 commits into
base: bw/filters-exploration
Choose a base branch
from
Draft

Conversation

misama-ct
Copy link
Contributor

creating a draft to have a storybook which displays the current filter status

ByronDWall and others added 9 commits September 12, 2024 13:09
… components, initialize yarn workspace for Filters, initialize FiltersList and FilterMenu components, add licenses, stub out files needed for generating READMEs for FilterMenu and FiltersList
* feat(local only storybook): add ability to only display a story in the sidebar when running storybook locally by adding a 'local-dev' tag to the story meta

* feat(local only storybook): use tag in mdx files as well

* feat(local only storybook): add local story stubs for FiltersList, add documentation for local-dev tag in storybook/README.md

* fix(tag): remove local-dev tag from dropdownmenu readme
…in storybook/package.json in order to merge local dev tagging to filters files branch
…ader, update conditional onclicks to give an alert for POC purposes
Copy link

vercel bot commented Sep 17, 2024

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

Name Status Preview Comments Updated (UTC)
ui-kit ✅ Ready (Inspect) Visit Preview 💬 Add feedback Sep 19, 2024 7:09am

Copy link

changeset-bot bot commented Sep 17, 2024

⚠️ No Changeset found

Latest commit: bb8a5fa

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

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

import { Footer } from './footer';
import { Header } from './header';
import { TriggerButton } from './trigger-button';
import * as Popover from '@radix-ui/react-popover';
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 really happy with how radix handles the popover compared to the DropdownMenu. I think we should use it.

I also think we should consider replacing the DropdownMenu internals with the radix popover instead of trying to implement complicated bugfixes and a11y updates to it ourselves.

const { colorNeutral85, colorNeutral40, colorPrimary, fontSize20 } =
designTokens;

const useScrollObserver = (ref: RefObject<HTMLElement>, totalCount: number) => {
Copy link
Contributor

Choose a reason for hiding this comment

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

This is a really elegant solution to hiding Chips and displaying a count of how many Chips are hidden in the Badge.

height: '2rem',
display: 'flex',
alignItems: 'center',
background: 'linear-gradient(to right, transparent, white 25%)',
Copy link
Contributor

Choose a reason for hiding this comment

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

the gradient is a nice touch

</ClearButtonContainer>

<CaretDownIcon size="small" color="neutral60" />
<OverlayButton ref={ref} aria-label={label} {...rest} />
Copy link
Contributor

Choose a reason for hiding this comment

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

This is a good solution to not requiring nested buttons

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.

2 participants