-
Notifications
You must be signed in to change notification settings - Fork 626
Update SelectPanel.playground.stories.tsx to no longer use styled-components #6525
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
base: main
Are you sure you want to change the base?
Changes from all commits
bca82a4
fb3118e
7070992
60f197a
3847f59
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
.ColorIndicator { | ||
width: 14px; | ||
height: 14px; | ||
border-radius: 100%; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think we can use |
||
} | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The CSS module should be wrapped in a CSS layer as mentioned in the PR description. Add Copilot uses AI. Check for mistakes. Positive FeedbackNegative Feedback |
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
|
@@ -2,8 +2,10 @@ import React from 'react' | |||||
import type {Meta, StoryFn} from '@storybook/react-vite' | ||||||
import type {SelectPanelProps} from './SelectPanel' | ||||||
import {SelectPanel} from './SelectPanel' | ||||||
import {ActionList, Box} from '../../index' | ||||||
import {ActionList} from '../../index' | ||||||
import data from './mock-story-data' | ||||||
import {clsx} from 'clsx' | ||||||
import classes from './SelectPanel.playground.stories.module.css' | ||||||
|
||||||
export default { | ||||||
title: 'Deprecated/Components/SelectPanel/Playground', | ||||||
|
@@ -121,10 +123,7 @@ export const Playground: StoryFn = args => { | |||||
selected={selectedLabelIds.includes(label.id)} | ||||||
> | ||||||
<ActionList.LeadingVisual> | ||||||
<Box | ||||||
sx={{width: 14, height: 14, borderRadius: '100%'}} | ||||||
style={{backgroundColor: `#${label.color}`}} | ||||||
/> | ||||||
<div className={clsx(classes.ColorIndicator)} style={{backgroundColor: `#${label.color}`}} /> | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The
Suggested change
Copilot uses AI. Check for mistakes. Positive FeedbackNegative Feedback There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Agree that we don't need clsx here, and so we can probably remove the import as well |
||||||
</ActionList.LeadingVisual> | ||||||
{label.name} | ||||||
<ActionList.Description variant="block">{label.description}</ActionList.Description> | ||||||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like this needs to be reverted since we don't want to add the snapshot with the cursor