-
Notifications
You must be signed in to change notification settings - Fork 273
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-rating-indicator): initial implementation #1729
Conversation
} | ||
|
||
const down = isDown(event) || isLeft(event); | ||
const up = isRight(event) || isUp(event) || isSpace(event) || isEnter(event); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
With Space and Enter, after the values reaches the maxValue (all starts are active) it starts over, it is cycling behaviour basically. This is how in openui5 works at least.
With Up/Left and Down/Right it is like currently works.
} | ||
|
||
:host([_focused]) { | ||
outline: 1px dotted var(--sapContent_FocusColor); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@ilhan007 has already noted most of the things I noticed as well, so I'll just go over the more important ones to me:
- Disabled state: the desired opacity is 0.4
- Focus should be around the stars
- In OpenUI5 the size is dynamic, you can give it in rems. Explore this option for us - both here and maybe busy indicator
The change adds RTL support, basically mirrors the borders of the first and the last button.
Fixes #1717