Skip to content

feat(design-system): add DsSplitButton component [AR-54024]#347

Open
iromanchuk-dn wants to merge 9 commits intodrivenets:mainfrom
iromanchuk-dn:AR-54024-design-system-split-button
Open

feat(design-system): add DsSplitButton component [AR-54024]#347
iromanchuk-dn wants to merge 9 commits intodrivenets:mainfrom
iromanchuk-dn:AR-54024-design-system-split-button

Conversation

@vpolessky-dn
Copy link
Copy Markdown
Collaborator

missing browser test fro the button

export type SplitButtonSize = (typeof splitButtonSizes)[number];

export interface DsSplitButtonSlotProps {
button: Partial<DsButtonV3Props>;
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

type SplitButtonButtonProps = Pick<DsButtonV3Props, 'icon' | 'loading' | 'onClick' | 'aria-label' | 'className' | 'disabled'>;

$divider-z-index: $highlighted-z-index + 1;
$divider-width: 1px;
$border-width: 1px;
$button-transition-duration: 0.15s;
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

transition standard is .2s

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

I made it aligned with DsButtonV3, it's important to have the same duration, because $button-transition-duration affects button right border.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants