You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Maybe I'm testing the wrong way, but label changes are reflected in the component, but not defaultValue and width.
I think that all values that can be manipulated in Controls should be reflected in the component, is that correct? 🤔
Maybe I'm testing the wrong way, but label changes are reflected in the component, but not defaultValue and width. I think that all values that can be manipulated in Controls should be reflected in the component, is that correct? 🤔
defaultValue still works in Docs view (not Canvas), because apparently the component gets remounted there. Since we're shifting our focus to the Docs view as we improve our TypeScript docs, I'm generally inclined to optimize for Docs view. No strong opinion on this part though, if people think it's better to disable the control.
width is a weird one. I read through the PR where it was introduced (#21091), but there were no mentions of it. I can't imagine it having ever worked, especially since the width is defined separately in CSS. It likely meant to say size instead of width. I'll address this in a separate PR.
defaultValue still works in Docs view (not Canvas), because apparently the component gets remounted there. Since we're shifting our focus to the Docs view as we improve our TypeScript docs, I'm generally inclined to optimize for Docs view. No strong opinion on this part though, if people think it's better to disable the control.
My feeling is that I prefer either of the following responses:
Disable defaultValue control
Use value instead of defaultValue so that it works with Canas as well, as in the current Storybook.
But I think it's fine as it is, and I'll leave the final decision up to you 😊
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Part of #35665
What?
Improves the stories to:
onChangevalues from the Actions tab.Why?
For easier testing.
Testing Instructions
npm run storybook:devand see the stories for AlignmentMatrixControl.