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

fix(CompositeBar/Item): support itemWrapper icon for highlighted node #148

Merged
merged 4 commits into from
Nov 14, 2023

Conversation

Lunory
Copy link
Collaborator

@Lunory Lunory commented Nov 13, 2023

No description provided.

@Lunory Lunory requested a review from DarkGenius as a code owner November 13, 2023 16:09
@gravity-ui-bot
Copy link
Contributor

Preview is ready.

const iconNode = makeIconNode(iconEl);

if (bringForward) {
highlightedNode = iconNode;
Copy link
Collaborator

Choose a reason for hiding this comment

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

The function makeNode has become a function with a side effect. I suggest leaving the variable highlightedNode definition in its place, but correcting the logic of its initialization (consider ItemWrapper).

@Lunory Lunory force-pushed the lunory/fix-highlighted-wrapper branch from 63cd3d2 to 573a05e Compare November 14, 2023 13:13
@Lunory Lunory merged commit 6874ee1 into main Nov 14, 2023
3 checks passed
@Lunory Lunory deleted the lunory/fix-highlighted-wrapper branch November 14, 2023 14:20
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