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(ui5-radio-button): exploratory testing issues #3740

Merged
merged 3 commits into from
Sep 3, 2021

Conversation

kskondov
Copy link
Contributor

@kskondov kskondov commented Aug 27, 2021

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

@@ -10,6 +10,8 @@
text-overflow: ellipsis;
overflow: hidden;
color: var(--sapField_BorderColor);
cursor: pointer;
width: fit-content;
Copy link
Member

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

Copy link
Contributor

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.

Copy link
Contributor

@georgimkv georgimkv left a 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.

@@ -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"/>
Copy link
Contributor

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;
Copy link
Contributor

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
@kskondov kskondov changed the title fix(ui5-radiobutton): exploratory testing fix(ui5-radio-button): exploratory testing Aug 31, 2021
@kskondov kskondov changed the title fix(ui5-radio-button): exploratory testing fix(ui5-radio-button): exploratory testing issues Aug 31, 2021
@georgimkv georgimkv requested a review from fifoosid September 3, 2021 10:08
@fifoosid fifoosid merged commit 23ce10f into master Sep 3, 2021
@fifoosid fifoosid deleted the ui5-radio-button-exploratory branch September 3, 2021 10:58
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.

ui5-radio-button: issues found from exploratory testing
5 participants