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

feat(ui5-icon): accessibility implementation #709

Merged
merged 6 commits into from
Aug 7, 2019
Merged

Conversation

elenastoyanovaa
Copy link
Contributor

No description provided.

Copy link
Contributor

@vladitasev vladitasev left a comment

Choose a reason for hiding this comment

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

Please rebase with the latest commit from Marti to fix the build too.

Then we can proceed with my commit for the icon svg render.

* @defaultvalue false
* @public
*/
showIconTooltip: {
Copy link
Contributor

Choose a reason for hiding this comment

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

IMO just showTooltip (Icon is in the name of the element already)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I was thinking a lot about this name! Thanks, I have changed it :)

packages/base/src/SVGIconRegistry.js Outdated Show resolved Hide resolved
vladitasev
vladitasev previously approved these changes Aug 2, 2019

const name = "sap-icon://message-information";
const d = "M448 32q13 0 22.5 9t9.5 22v384q0 14-9.5 23.5T448 480H64q-14 0-23-9.5T32 447V63q0-13 9-22t23-9h384zm0 31H64v384h384V63zM320 416H192v-33h33V255h-32v-31h95v159h32v33zm-64-225q-14 0-23-9t-9-22q0-14 9-23.5t23-9.5q13 0 22.5 9.5T288 160q0 13-9.5 22t-22.5 9z";
const acc = ICON_MESSAGE_INFORMATION.defaultText;
Copy link
Contributor

Choose a reason for hiding this comment

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

Should be the whole object, not the default text, so that it can be translated

Copy link
Member

Choose a reason for hiding this comment

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

done

get accessibleNameText() {
const icon = getIconData(this._normalizeIconURI(this.src));

return this.accessibleName || icon.accText;
Copy link
Contributor

Choose a reason for hiding this comment

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

getResourceBundle().getText() should be here

Copy link
Contributor

Choose a reason for hiding this comment

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

We have to fix it first to not break. It should return the english text if no text is found in the translation

Copy link
Member

Choose a reason for hiding this comment

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

done

@elenastoyanovaa elenastoyanovaa merged commit 1357c16 into master Aug 7, 2019
@elenastoyanovaa elenastoyanovaa deleted the icons-acc branch August 7, 2019 20:57
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.

None yet

3 participants