-
Notifications
You must be signed in to change notification settings - Fork 13
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: in UiQuestion add an optional icon for the Why button #530
Conversation
@@ -295,6 +307,7 @@ const defaultProps = computed(() => { | |||
icon, | |||
...props.iconInfoAttrs, | |||
}, | |||
iconWhyAttrs: { ...props.iconWhyAttrs }, |
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.
icon:info it shouldn't be added by default?
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.
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.
ok, thank_you
@@ -295,6 +307,7 @@ const defaultProps = computed(() => { | |||
icon, | |||
...props.iconInfoAttrs, | |||
}, | |||
iconWhyAttrs: { ...props.iconWhyAttrs }, |
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.
iconWhyAttrs: { ...props.iconWhyAttrs }, | |
iconWhyAttrs: { | |
icon: 'info, | |
...props.iconWhyAttrs | |
}, |
@@ -108,6 +110,11 @@ | |||
v-bind="buttonWhyAttrs" | |||
class="ui-button--small ui-button--text" | |||
> | |||
<UiIcon | |||
v-if="iconWhyAttrs.icon" |
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.
v-if="iconWhyAttrs.icon" | |
v-if="defaultProps.iconWhyAttrs.icon" |
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.
icon info
should be a default view for why
and we don't need a new stories
Description
It adds an optional
![image](https://private-user-images.githubusercontent.com/37744371/366780920-267ac031-14f8-4987-b33a-46a0a921358f.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkxNTQxMjgsIm5iZiI6MTczOTE1MzgyOCwicGF0aCI6Ii8zNzc0NDM3MS8zNjY3ODA5MjAtMjY3YWMwMzEtMTRmOC00OTg3LWIzM2EtNDZhMGE5MjEzNThmLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTAlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjEwVDAyMTcwOFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWJjMDE1ZDE4N2I2NWVjMjEzZmFiMDEzYzQ4MjM0ZjJiYTNmOTAwZmZiMjllNDI4MzIwNDZjNDBlZWI2YTU0YjMmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.Fw_9R4zx0GqyTQhkmJjPtiZwTN6w9uQwx-D5BHzrYrk)
icon
to the why button inUiQuestion
. I need this icon because question about sex has this icon:Related Issue
Closes #
Motivation and Context
How Has This Been Tested?
Screenshots (if appropriate):
Checklist: