Skip to content

SelectPanel2: Add SelectPanel.SecondaryAction - #4145

Merged
siddharthkp merged 5 commits into
mainfrom
drafts-selectpanel-secondary-actions
Jan 23, 2024
Merged

SelectPanel2: Add SelectPanel.SecondaryAction#4145
siddharthkp merged 5 commits into
mainfrom
drafts-selectpanel-secondary-actions

Conversation

@siddharthkp

Copy link
Copy Markdown
Member
<SelectPanel.Footer><SelectPanel.SecondaryActionvariant="button">Edit labels</SelectPanel.SecondaryAction></SelectPanel.Footer>
Secondary action button
<SelectPanel.Footer><SelectPanel.SecondaryActionvariant="link">Edit labels</SelectPanel.SecondaryAction></SelectPanel.Footer>
Secondary action link
<SelectPanel.Footer><SelectPanel.SecondaryActionvariant="checkbox">Set as default</SelectPanel.SecondaryAction></SelectPanel.Footer>
Secondary action checkbox

@changeset-bot

This comment was marked as resolved.

@github-actions

github-actionsBot commented Jan 13, 2024

Copy link
Copy Markdown
Contributor

size-limit report 📦

PathSize
dist/browser.esm.js104.47 KB (0%)
dist/browser.umd.js105.08 KB (0%)

@github-actions
github-actionsBottemporarily deployed to storybook-preview-4145 January 13, 2024 19:31 Inactive
@siddharthkp
siddharthkp marked this pull request as ready for review January 13, 2024 19:33
@siddharthkp
siddharthkp requested a review from a teamJanuary 13, 2024 19:33
)
}

const FooterContext = React.createContext(false)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

minor: we should add a type to the context (probably it is in your to-do but just a reminder 🙂 )

Copy link
Copy Markdown
MemberAuthor

Choose a reason for hiding this comment

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

Updated :)


const SecondaryLink: React.FC<LinkProps> = props => {
return (
// @ts-ignore TODO: is as prop is not recognised by button?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I think it is but maybe with "a" instead of Link?

@siddharthkpsiddharthkpJan 22, 2024

Copy link
Copy Markdown
MemberAuthor

Choose a reason for hiding this comment

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

Nah, that also throws some type errors 🤔

Will put an task to triage and clean up at the end of the project!

@siddharthkp
siddharthkp added this pull request to the merge queueJan 23, 2024
Merged via the queue into main with commit 996475fJan 23, 2024
@siddharthkp
siddharthkp deleted the drafts-selectpanel-secondary-actions branch January 23, 2024 08:11
@primerprimerBot mentioned this pull request Jan 23, 2024
Sign up for freeto 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

@siddharthkp@broccolinisoup@mperrotti