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

SAK-49328 Profile Cannot change / add profile photo with profile2.avatar.initials.enabled=false #13422

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

kunaljaykam
Copy link
Member

@kunaljaykam kunaljaykam commented Mar 8, 2025

I asked calude-3.7 inside cursor to edit this file. Its tested.

@kunaljaykam kunaljaykam requested a review from ottenhoff March 8, 2025 05:25
Copy link

@accesslint accesslint bot left a 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}" />` :
Copy link

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.

Copy link
Contributor

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

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?

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.

3 participants