Open macandcheese opened 7 months ago
@macandcheese it looks like when a component is connected or when a new action is slotted, we are modifying that action to be text-enabled or not depending on the state of the parent component.
I think we should change this but it would be a fix that users would need to be aware of and maybe modify their code to handle. For example, if a user adds an action in a calcite-action-bar
that has expanded=true
then they should make sure that the action has text-enabled
.
The change would be to only modify text-enabled
on child actions when the expanded property is changed. Not when a component is loaded, connected, or during a mutation.
cc @jcfranco for if we want to do this during a breaking change release.
@geospatialem @DitwanP I think we should move this one to the breaking change release since it could require users to make changes to their code.
Sounds good. Moving to the November milestone as a precaution. Also labeled as breaking to remind us to add additional context for this change.
Check existing issues
Actual Behavior
When
expand-disabled
is set on a containing Action Bar, I cannot settext-enabled
on a slotted Action.Additionally, when setting
overflow-actions-disabled
, and there areactions-end
slotted actions, they are not presented horizontally. Maybe this is a pattern thing and they should not be expected within a group there.Expected Behavior
I'd expect to be able to individually set
text-enabled
on a slotted Action whenexpand-disabled
is set on a parent. The use case for this is primarily forlayout="horizontal"
, where one or a few of the slotted Action are desired to havetext-enabled
.Reproduction Sample
https://codepen.io/mac_and_cheese/pen/yLrNmXa?editors=1000
Reproduction Steps
text-enabled
properties set on slotted Actions are not respectedoverflow-actions-disabled
example "stacks" the slottedactions-end
when they are in a groupReproduction Version
2.6.0
Relevant Info
From @driskull "we just need to update the
toggleChildActionTextfunction
to considerexpandDisabled
"Regression?
No response
Priority impact
p4 - not time sensitive
Impact
No response
Calcite package
Esri team
Calcite (design)