design-system-react icon indicating copy to clipboard operation
design-system-react copied to clipboard

[Button component] variant is ignored when iconVariant is present

Open qyiming opened this issue 7 years ago • 5 comments

In SLDS button component, 'variant' is not applied if 'iconVariant' is present.

https://react.lightningdesignsystem.com/components/buttons/

For example -

when variant is 'brand' and iconVariant is 'border', the search button does not have the brand color, it is

screen shot 2019-02-06 at 5 43 19 pm

whereas I expect it to be have the blue brand, similar to the following

screen shot 2019-02-06 at 5 47 29 pm

qyiming avatar Feb 07 '19 01:02 qyiming

Please modify the code with your proposal and post a screenshot of what variant=brand and iconVariant=border look like together. I think it should be fine, but I'll want to see it. Thanks!

interactivellama avatar Feb 07 '19 03:02 interactivellama

If anyone is not working on it, Can I take it up?

pradumangoyal avatar Mar 10 '19 04:03 pradumangoyal

Hi @interactivellama , actually iconVariant is not ignored. The brand option is not present for iconVariant. The desired output(Icon button with brand color at background) can be obtained by setting iconVariant to brand.

image

The SLDS also have brand in the icon type as shown in the screenshot.

image

pradumangoyal avatar Mar 10 '19 12:03 pradumangoyal

This issue has been automatically marked as stale, because it has not had recent activity. It will be closed if no further activity occurs. Maintainers are responsible for tech debt and project health. This is most likely a new components or component feature request. Please submit a pull request for or request feedback on this feature. Thank you.

stale[bot] avatar May 12 '19 06:05 stale[bot]

This issue has been automatically marked as stale, because it has not had recent activity. It will be closed if no further activity occurs. Maintainers are responsible for tech debt and project health. This is most likely a new components or component feature request. Please submit a pull request for or request feedback on this feature. Thank you.

stale[bot] avatar Jul 12 '19 05:07 stale[bot]