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

docs(CloseButton): add component page #5474

Merged

Conversation

davidjb
Copy link
Contributor

@davidjb davidjb commented Oct 12, 2020

See #5468. Some adjustment of the TS API may be required, see below where the variant's type is the string literal of 'white' (PropTypes.oneOf[null, 'white']?):

image

Copy link
Member

@kyletsang kyletsang left a comment

Choose a reason for hiding this comment

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

This looks good! Left a few minor adjustments in the comments.

www/src/examples/CloseButton/Variants.js Outdated Show resolved Hide resolved
src/CloseButton.tsx Outdated Show resolved Hide resolved
www/src/pages/components/close-button.mdx Outdated Show resolved Hide resolved
www/src/pages/components/close-button.mdx Outdated Show resolved Hide resolved
@davidjb
Copy link
Contributor Author

davidjb commented Oct 13, 2020

Thanks for the review @kyletsang - all changes made and pushed into this PR

@kyletsang kyletsang merged commit 63a399b into react-bootstrap:v5-close-button Oct 14, 2020
@kyletsang
Copy link
Member

Thanks!

kyletsang added a commit that referenced this pull request Dec 9, 2020
* feat(v5): Update CloseButton

- Added white variant
- Remove inner span label in favor of aria-label attrib
- Remove inner &times label since it's now using a built-in svg
- Enable CloseButton tests (previously not working)
- Added closeVariant prop to Alert, ToastHeader, ModalHeader

* docs(CloseButton): add component page (#5474)

Co-authored-by: David Beitey <david@davidjb.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.

None yet

2 participants