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

Board: Add button shape and title props #1381

Merged
merged 2 commits into from
Apr 12, 2022
Merged

Conversation

annano
Copy link
Contributor

@annano annano commented Apr 12, 2022

Signed-off-by: Anna No anna.no@xored.com

Signed-off-by: Anna No <anna.no@xored.com>
@annano annano requested review from haiodo, lvfxx and Dvinyanin April 12, 2022 09:38
@@ -24,14 +24,15 @@
export let labelParams: Record<string, any> = {}
export let kind: 'primary' | 'secondary' | 'no-border' | 'transparent' | 'link' | 'dangerous' = 'secondary'
export let size: 'small' | 'medium' | 'large' | 'x-large' = 'medium'
export let shape: 'circle' | undefined
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
export let shape: 'circle' | undefined
export let shape: 'circle' | undefined = undefined

To prevent warnings for usual use

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Updated

Signed-off-by: Anna No <anna.no@xored.com>
@annano annano requested a review from haiodo April 12, 2022 11:26
export let icon: Asset | AnySvelteComponent | undefined = undefined
export let justify: 'left' | 'center' = 'center'
export let disabled: boolean = false
export let loading: boolean = false
export let width: string | undefined = undefined
export let resetIconSize: boolean = false
export let focus: boolean = false
export let isCircle: boolean = false
Copy link
Member

Choose a reason for hiding this comment

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

@annano please also check CircleButton.svelte in @anticrm/ui

@haiodo haiodo merged commit 1c321d2 into main Apr 12, 2022
@haiodo haiodo deleted the ano/minor-add-button-shape branch April 12, 2022 17:13
budaeva pushed a commit that referenced this pull request Apr 13, 2022
Signed-off-by: Anna No <anna.no@xored.com>
Signed-off-by: budaeva <irina.budaeva@xored.com>
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