Skip to content
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

2017 ic toggle button group props dont seem to be passed down correctly to toggle button 1 #3004

Open
wants to merge 4 commits into
base: v3.0.0/develop
Choose a base branch
from

Conversation

gd2910
Copy link
Contributor

@gd2910 gd2910 commented Jan 10, 2025

Summary of the changes

Bugfix: if a toggle-button (TB) slotted in a toggle-button-group (TBG) had a prop such as loading or disabled, the TBG would only apply the props tp the TB once it had rendered, resulting in a flash from a default TB to a TB with the required props.

TB now detect whether it is a child of a TBG and applies appropriate attributes from parent.

Testing and Storybook - removed superfluous props on TB within TBG

Related issue

#2017

@gd2910 gd2910 force-pushed the 2017-ic-toggle-button-group-props-dont-seem-to-be-passed-down-correctly-to-toggle-button-1 branch 6 times, most recently from ae7c52b to 6300a05 Compare January 13, 2025 16:52
@gd2910 gd2910 marked this pull request as ready for review January 13, 2025 17:03
@gd2910 gd2910 force-pushed the 2017-ic-toggle-button-group-props-dont-seem-to-be-passed-down-correctly-to-toggle-button-1 branch from 22c9870 to ca9ea5a Compare January 14, 2025 10:36
@gd2910 gd2910 force-pushed the 2017-ic-toggle-button-group-props-dont-seem-to-be-passed-down-correctly-to-toggle-button-1 branch 2 times, most recently from 9ff5165 to 5103e9e Compare January 14, 2025 13:46
@gd2910 gd2910 force-pushed the 2017-ic-toggle-button-group-props-dont-seem-to-be-passed-down-correctly-to-toggle-button-1 branch 4 times, most recently from 17fb6f7 to 836e244 Compare January 21, 2025 10:53
@gd2910 gd2910 force-pushed the 2017-ic-toggle-button-group-props-dont-seem-to-be-passed-down-correctly-to-toggle-button-1 branch 6 times, most recently from 471279a to e7a7200 Compare January 22, 2025 16:17
helper function added for a comp to detect if it is the child of a group
type added for ic-toggle-button
bugfix for ic-toggle-button-group where a slotted ic-toggle-button would flash as default then
render to the required prop
@gd2910 gd2910 force-pushed the 2017-ic-toggle-button-group-props-dont-seem-to-be-passed-down-correctly-to-toggle-button-1 branch from e7a7200 to 843d9cc Compare January 22, 2025 16:43
tests updated after chnage in prop allocation from toggle buton group to children
@gd2910 gd2910 force-pushed the 2017-ic-toggle-button-group-props-dont-seem-to-be-passed-down-correctly-to-toggle-button-1 branch from 843d9cc to 5ae7a78 Compare January 23, 2025 10:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants