-
Notifications
You must be signed in to change notification settings - Fork 76
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
test(flow-item, panel): add tests for internal property. #7931
Conversation
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.
If this prop only affects the icon and not the way the panel expands, for consistency, could we rename it to follow something similar to flipRtl
?
@@ -159,6 +167,10 @@ export const collapsed_TestOnly = (): string => html` | |||
<calcite-flow-item collapsed collapsible closable> Hello World! </calcite-flow-item> | |||
`; | |||
|
|||
export const collapsedInverted_TestOnly = (): string => html` |
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.
collapsedInverted_TestOnly
➡️ collapseInverted_TestOnly
@jcfranco I had considered |
Since ‘collapseInverted’ doesn’t really explain what the default direction is, maybe ‘collapseDirection’ top / bottom with a meaningful default is easier to understand? It does seem like it would maybe be confusing or lead to misuse as an option in Block, Accordion, etc, so would this only be available in Panel? |
I agree. Maybe you me and @jcfranco can figure out a name? I can also just make this internal for now.
I think it could be useful in anything that uses expand arrows to indicate expand direction. Currently, we assume that accordion and block open below but if the component is anchored at the bottom of something then that isn't the case anymore. |
Good point. I don't think we focus on this explicitly in our conventions. From what I recall, we've suggested concise adjectives for boolean names. We could update the conventions and do another audit on boolean names. FWIW, I was more suggesting to use
Agreed. Would we ever have other directions? I'm fine with keeping it internal while we hash this out to land the increased test coverage. |
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.
Aside from the naming discussion, LGTM!
Good to merge as is if the prop is made internal.
Yeah, although I think flipping the direction of the icon is unneeded because the area that expands is still opening in the same space / direction - the containing element just gets taller. A "real flip" IMO would be the content area opening on the "other side" of the element. That said, it can be confused with a "collapse further or dock at bottom" in the case of the JSAPI example, and I know we didn't want to flip the position of the title bar just to facilitate a more literal chevron meaning, lol. |
Reverted to previous name and |
@ashetland can you review screenshot tests? |
…cite-design-system into dris0000/collapse-inverted-prop
* origin/main: (83 commits) chore: add design tokens to monorepo (#7948) test(input-time-zone): restore common tests (#7963) chore: release next fix(input-time-zone): fix error caused by time zone group filtering (#7971) chore: release next fix(table): Improve scrollbar display (#7967) build: bump timezone-groups (#7962) chore: release next fix(flow-item): update collapsed property when collapse button is clicked (#7960) chore: release main (#7945) chore: release next fix(input-time-zone): fix handling of unknown and cityless time zones from offset display mode (#7947) fix(combobox): fix issue causing value to be cleared when selecting an item (Windows + trackpad) (#7954) chore(deps): update calcite-ui-icons to 3.24.7 (#7949) test(flow-item, panel): add tests for internal property. (#7931) chore: release next fix(panel): fix collapse action title and reverse icon direction (#7927) chore: update issue template labels to support workflows (#7938) build(deps): bump timezone-groups (#7933) build(deps): update dependency @esri/calcite-ui-icons to v3.24.6 (#7925) ...
Related Issue: #7930
Summary