-
-
Notifications
You must be signed in to change notification settings - Fork 959
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
SAK-49328 Profile Cannot change / add profile photo with profile2.avatar.initials.enabled=false #13422
base: master
Are you sure you want to change the base?
Conversation
…tar.initials.enabled=false
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 are accessibility issues in these changes.
@@ -228,9 +237,12 @@ export class SakaiPictureChanger extends SakaiElement { | |||
<div id="image-editor-crop-wrapper"> | |||
<div id="cropme"> | |||
<input type="file" accept="image/*" value="Choose an image" @change=${this._filePicked} /> | |||
<img id="image" src="${ifDefined(this._imageUrl)}"/> | |||
${this._imageUrl ? | |||
html`<img id="image" class="max-width-100" src="${this._imageUrl}" />` : |
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.
This image is missing a text alternative. This is a problem for people using screen readers.
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.
I know this does not relate to the changes in this PR, so feel free to resolve this again. But I think the complain is valid here?
} else { | ||
this._attachCropper(); | ||
} | ||
this._needsSave = true; |
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.
do we need to move this._needsSave = true;
into the callback, I think it could stay where it was?
I asked calude-3.7 inside cursor to edit this file. Its tested.