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

feat(ui5-li, ui5-tree-item): introduce new slot customIcon #7572

Closed
wants to merge 1 commit into from

Conversation

dobrinyonkov
Copy link
Contributor

Closes: #7481

@@ -498,6 +510,10 @@ abstract class ListItem extends ListItemBase {
return !!this.deleteButton.length;
}

get hasIconSlot() {
Copy link
Contributor

Choose a reason for hiding this comment

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

minor:
"hasCustomIcon" is probably a more specific name...

But feel free to either reflect or discard this comment

(I see that the convention hasXslot is already used in the file => I guess this is why you used that pattern, even though its name is not literally 100% accurate)

@@ -257,6 +257,18 @@ abstract class ListItem extends ListItemBase {
@slot()
deleteButton!: Array<HTMLElement>;

/**
* Defines the icon, displayed in the beginning or end of the list item.
Copy link
Contributor

Choose a reason for hiding this comment

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

Minor:
Maybe also add a comment that if a customIcon is set, it will be rendered in place of the standard icon defined in the "icon" property

@nnaydenow nnaydenow deleted the listitem-icon-slot branch October 20, 2023 06:27
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.

[SF | a11y | ui5-tree]: JAWS is not reading the icon name along with the group title
2 participants