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

refactor(ui5-combobox, ui5-multi-combobox): prepare for physical list items #9307

Merged
merged 2 commits into from
Jun 27, 2024

Conversation

elenastoyanovaa
Copy link
Contributor

@elenastoyanovaa elenastoyanovaa commented Jun 26, 2024

As the ui5-multi-combobox & ui5-combobox will use physical items, additional adjustments need to be performed in order to have a smooth and backward compatible transition.

This change renames the text property of the ui5-cb-item-group & ui5-mcb-item-group to header-text in consistency to the ui5-li-group which the ComboBoxItemGroup and MultiComboBoxItemGroup will extend once transitioning to physical items in the list.

After the transition from IComboBoxItem/IMultiComboBoxItem to ListItemGroup for the group items code clean up of the non-null assertion operator can be performed as well.

BREAKING CHANGE: The ui5-cb-item-group & ui5-mcb-item-group text property is renamed to header-text.
If you previously used the text property:

<ui5-cb-item-group text="A">
   <ui5-cb-item text="Algeria"></ui5-cb-item>
</ui5-cb-item-group>
<ui5-mcb-item-group text="A">
   <ui5-mcb-item text="Afghanistan"></ui5-mcb-item>
</ui5-mcb-item-group>

Now you must rename it to header-text:

<ui5-cb-item-group header-text="A">
   <ui5-cb-item text="Algeria"></ui5-cb-item>
</ui5-cb-item-group>
<ui5-mcb-item-group header-text="A">
   <ui5-mcb-item text="Afghanistan"></ui5-mcb-item>
</ui5-mcb-item-group>

Related to: #8461

@elenastoyanovaa elenastoyanovaa changed the title chore(ui5-combobox, ui5-multi-combobox): prepare for physical list items refactor(ui5-combobox, ui5-multi-combobox): prepare for physical list items Jun 26, 2024
Copy link
Member

@MapTo0 MapTo0 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good to me on API shaping side, we will refactor it with the physical cb items after 2.0

@elenastoyanovaa elenastoyanovaa merged commit 67c7597 into main Jun 27, 2024
10 checks passed
@elenastoyanovaa elenastoyanovaa deleted the combo-group-items branch June 27, 2024 10:27
ilhan007 pushed a commit that referenced this pull request Jun 30, 2024
… items (#9307)

As the ui5-multi-combobox & ui5-combobox will use physical items, additional adjustments need to be performed in order to have a smooth and backward compatible transition.

This change renames the text property of the ui5-cb-item-group & ui5-mcb-item-group to header-text in consistency to the ui5-li-group which the ComboBoxItemGroup and MultiComboBoxItemGroup will extend once transitioning to physical items in the list.

After the transition from IComboBoxItem/IMultiComboBoxItem to ListItemGroup for the group items code clean up of the non-null assertion operator can be performed as well.

BREAKING CHANGE: The ui5-cb-item-group & ui5-mcb-item-group text property is renamed to header-text.
If you previously used the text property:

<ui5-cb-item-group text="A">
   <ui5-cb-item text="Algeria"></ui5-cb-item>
</ui5-cb-item-group>
<ui5-mcb-item-group text="A">
   <ui5-mcb-item text="Afghanistan"></ui5-mcb-item>
</ui5-mcb-item-group>
Now you must rename it to header-text:

<ui5-cb-item-group header-text="A">
   <ui5-cb-item text="Algeria"></ui5-cb-item>
</ui5-cb-item-group>
<ui5-mcb-item-group header-text="A">
   <ui5-mcb-item text="Afghanistan"></ui5-mcb-item>
</ui5-mcb-item-group>

Related to: #8461
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants