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-rating-indicator): Apply correct color for readonly unselec… #3992

Merged
merged 2 commits into from
Sep 27, 2021

Conversation

niyap
Copy link
Contributor

@niyap niyap commented Sep 23, 2021

FIXES: #3716

@@ -207,6 +207,7 @@ class RatingIndicator extends UI5Element {
selected: i <= tempValue,
index: i,
halfStar,
readonly: this.readonly,
Copy link
Contributor

Choose a reason for hiding this comment

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

This will have the same value for all items. You don't need to push it here in order to access it in the .hbs file. Use the ../ syntax

@@ -23,6 +23,8 @@
<div class="ui5-rating-indicator-icon ui5-rating-indicator-active-icon" data-value="{{this.index}}">&#9733;</div>
{{else if this.halfStar}}
<div class="ui5-rating-indicator-icon ui5-rating-indicator-half-icon" data-value="{{this.index}}">&#9734;</div>
{{else if this.readonly}}
Copy link
Contributor

Choose a reason for hiding this comment

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

See for example this snippet on how to use a global value:

{{#each items}}
			{{#if this.selected}}
				<ui5-token
					?readonly="{{../readonly}}"
					class="ui5-multi-combobox-token"
					data-ui5-id="{{this._id}}"
					part="token-{{@index}}"
					text="{{this.text}}"
				>
				</ui5-token>
			{{/if}}
		{{/each}}
		```

@vladitasev vladitasev changed the title fix(ui5-ratiing-inddicator): Apply correct color for readonly unselec… fix(ui5-rating-indicator): Apply correct color for readonly unselec… Sep 24, 2021
@niyap niyap requested a review from vladitasev September 24, 2021 10:46
@fifoosid fifoosid dismissed vladitasev’s stale review September 27, 2021 13:29

comments are fixed

@fifoosid fifoosid merged commit 5854e0f into SAP:master Sep 27, 2021
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.

RatingIndicator: The color of readonly icons is incorrect
4 participants