-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
[ChoiceList] Add JSX support to the title prop #2355
Conversation
💦 Potential splash zone of changes introduced to No significant changes to This comment automatically updates as changes are made to this pull request. |
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.
LGTM! 🎉
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.
Thanks @jtrollia! merge at your leisure
d2be642
to
71d7158
Compare
UNRELEASED.md
Outdated
@@ -10,6 +10,8 @@ Use [the changelog guidelines](https://git.io/polaris-changelog-guidelines) to f | |||
|
|||
### Enhancements | |||
|
|||
- Updated the type of the `title` prop in `ChoiceList` from `string` to `ReactNode` ([#2355](https://github.com/Shopify/polaris-react/pull/2355)) | |||
|
|||
### Bug fixes | |||
|
|||
- Fixed an accessibility issue with `TextField` `multiline` where `aria-multiline` would be set to an invalid type `number` ([#2351](https://github.com/Shopify/polaris-react/pull/2351)) |
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.
@BPScott @LauraAubin I assume these have been re-introduced by the latest revert - should I removed them in this PR?
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.
Unsure of the top of my head - rebase atop latest master and see what ends up being in this file
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.
That's what I did :o
As you can see the latest version of the file, there are references to stuff that have been merged and shipped already - hence my confusion
From what I understand from the guidelines
The changelog is prepared manually immediately before a release, by moving changelog entries from UNRELEASED.md to CHANGELOG.md, under a new heading for the version number.
We have to clear the file manually?
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.
Those entries must have not been cleared from the unreleased file with the latest release. Since they are referenced in the changelog, and I don't see a revert, I think it's fine to remove those entries from the unreleased doc.
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 was referring to #2377, anyways I can clear the doc 👍
71d7158
to
de64cd1
Compare
WHY are these changes introduced?
There are cases where a
ChoiceList
requires nested translations/HTML tags in itstitle
.WHAT is this pull request doing?
Switching
title
's prop type fromstring
to a more permissiveReactNode
.How to 🎩
yarn dev
/ playground🖥 Local development instructions
🗒 General tophatting guidelines
📄 Changelog guidelines
Copy-paste this code in
playground/Playground.tsx
:🎩 checklist
Tested on mobileTested on multiple browsersTested for accessibilityUpdated the component'sREADME.md
with documentation changesTophatted documentation changes in the style guideFor visual design changes, pinged one of @ HYPD, @ mirualves, @ sarahill, or @ ry5n to update the Polaris UI kit