Skip to content

Conversation

@microbit-robert
Copy link

This does not feel as visually appealing as the current behaviour. Closes #512

@github-actions
Copy link

Preview build will be at
https://review-createai.microbit.org/session-button/

@microbit-matt-hillsdon
Copy link

I think this is OK visually. Let's do a classroom PR alongside this one.

onClick();
}
}, [disabled, onClick]);
const [isFocused, setIsFocused] = useState(false);

Choose a reason for hiding this comment

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

Feels like there should be a way to do it without this.

Copy link
Author

Choose a reason for hiding this comment

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

The only other way I can see is a ref, useEffect and listeners on focusin and blur?

Copy link
Author

Choose a reason for hiding this comment

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

Stateless approach using _groupFocusWithin -> bfc291b

Choose a reason for hiding this comment

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

Thanks! Sorry for my totally non-constructive feedback and glad it turned out to be true.

@microbit-matt-hillsdon microbit-matt-hillsdon merged commit e6722f0 into main Nov 19, 2024
1 check passed
@microbit-matt-hillsdon microbit-matt-hillsdon deleted the session-button branch November 19, 2024 09:48
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.

Focus indicator doesn't map with mouse hover

3 participants