-
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
feat: Allow ReactElement in LabeledValue value #7679
Conversation
352ffae
to
9493cf0
Compare
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! The lint build step is mostly failing due to formatting, so you can run yarn lint
to see what to fix for the build to pass
packages/@react-spectrum/labeledvalue/test/LabeledValue.test.js
Outdated
Show resolved
Hide resolved
7a00842
to
07ceb2c
Compare
e7b1b5a
to
99cb77e
Compare
type LabeledValueStory = ComponentStoryObj<typeof LabeledValue>; | ||
|
||
export default { | ||
const meta: Meta<typeof LabeledValue> = { | ||
title: 'LabeledValue', |
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.
adding this back in fixed the storybook naming structure
value={<input />} /> | ||
); | ||
} catch (e) { | ||
expect(e.message).toEqual('LabeledValue cannot contain an editable value.'); |
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 think it's possible that this isn't throwing, and the test is still passing. We'll want to do the assertion outside of the catch to double check this. I'll try to double check this test when I have a chance. The change looks great, but there may be something we're missing in terms of the test setup. Sorry for the delays!
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.
Updated the assertion outside of the catch!
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! thanks for contribution
✅ Pull Request Checklist:
📝 Test Instructions:
Storybook included as "Custom component" under "LabeledValue"
🧢 Your Project:
Adobe - Developer Home