-
Notifications
You must be signed in to change notification settings - Fork 272
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(ui5-radio-button): exploratory testing issues #3740
Conversation
@@ -10,6 +10,8 @@ | |||
text-overflow: ellipsis; | |||
overflow: hidden; | |||
color: var(--sapField_BorderColor); | |||
cursor: pointer; | |||
width: fit-content; |
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.
Would the "fit-content" work for IE, I think it's not supported
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.
Try display: flex
on the host element, instead of this.
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.
The commit message is unclear at what this commit does. Can you rewrite it?
The tag name is for the component is "ui5-radio-button".
The referenced issue also has an extra point about adding a sample for "readonly", so if you intend to make a seperate pull request for that, rewrite this PR to not have "Fixes #issueno" because merging it will close that issue.
packages/main/src/RadioButton.hbs
Outdated
@@ -15,7 +15,7 @@ | |||
<div class='ui5-radio-inner {{classes.inner}}'> | |||
<svg class="ui5-radio-svg" focusable="false" aria-hidden="true"> | |||
<circle class="ui5-radio-svg-outer" cx="50%" cy="50%" r="50%" /> | |||
<circle class="ui5-radio-svg-inner" cx="50%" cy="50%" r="22%" /> | |||
<circle class="ui5-radio-svg-inner" cx="50%" cy="50%" r="25%" stroke-width="10"/> |
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.
25% makes the "inner" blue dot grow to 11px.
The dot is specified to be 10px.
I also don't see any difference with stroke-width="10"
and without it. Why is it needed?
If it is necessary, it could be part of the CSS.
@@ -10,6 +10,8 @@ | |||
text-overflow: ellipsis; | |||
overflow: hidden; | |||
color: var(--sapField_BorderColor); | |||
cursor: pointer; | |||
width: fit-content; |
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.
Try display: flex
on the host element, instead of this.
Added readonly samples, width: fit-content replaced with display:flex
The cursor should be a pointer
There should be a readonly sample
The width should be correct when focus is on the radio-button
Fixes: #3622