-
Notifications
You must be signed in to change notification settings - Fork 6
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
Mod 9702 add button component to cards #163
Conversation
updated button for cardcomponent
you'll also have to update the version in package.json |
components/cards/CardButton.jsx
Outdated
className={`card__button--secondary ${variantMapper[variant]} ${customClassName}`} | ||
aria-label={`${text}`} | ||
disabled={disabled} | ||
onKeyUp={(e) => handleKeyUp(e)} | ||
onClick={action}> | ||
{text || children} | ||
</button> | ||
</button> */} | ||
<Button onKeyUp={(e) => handleKeyUp(e)} onClick={action} copy={text || children} buttonTitle={text || children} buttonSize="md" buttonType="primary" backgroundColor="light" /> |
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.
i would think you would need to pass in the buttonType here? are they all primary buttons?
do you think the intention of this ticket is to replace these with 'Button' too?
|
yeah, I added the buttons then make sure the styling matches, then Ill get rid of the other button |
Most of the styling additional styling is on usas |
data-transparency-ui-5.4.0.tgz
Outdated
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.
delete this file
onClick={action}> | ||
{text || children} | ||
</button> | ||
<Button onKeyUp={(e) => handleKeyUp(e)} onClick={action} copy={text || children} buttonTitle={text || children} buttonSize="md" buttonType={variantMapper[variant] === undefined ? "secondary" : variantMapper[variant]} backgroundColor="light" textAlignment="center" /> |
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.
are they always medium sized?
Check List Before Merging
Author
/docs
)/dist
)👆These can be done by executing
npm run build
and committing the build artifacts./index.js
(if applicable)
(if applicable)
(if applicable)
index.d.ts
updated with new prop types defined for new components.(if applicable)
Reviewer