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

Incorrect value of [aria-pressed] attribute in switch #11115

Closed
Comandeer opened this issue Jan 14, 2022 · 6 comments · Fixed by #12047
Closed

Incorrect value of [aria-pressed] attribute in switch #11115

Comandeer opened this issue Jan 14, 2022 · 6 comments · Fixed by #12047
Assignees
Labels
domain:accessibility This issue reports an accessibility problem. intro Good first ticket. squad:core Issue to be handled by the Core team. squad:features Issue to be handled by the Features team. type:bug This issue reports a buggy (incorrect) behavior.

Comments

@Comandeer
Copy link
Member

📝 Provide detailed reproduction steps (if any)

  1. Open https://ckeditor.com/docs/ckeditor5/latest/examples/builds-custom/full-featured-editor.html
  2. Open a dialog for inserting links.
  3. Inspect the "Downloadable" switch element.

✔️ Expected result

The element has [aria-pressed] attribute with a value of false.

❌ Actual result

The element has [aria-pressed] attribute with a value of undefined.

📃 Other details

  • Browser: 97.0.4692.71 (Official Build) (x86_64)
  • OS: macOS 12.0.1
  • First affected CKEditor version: 31.1.0 (tested only on this one)
  • Installed CKEditor plugins: link

It seems that the attribute's value fixes itself the moment user interacts with the switch.


If you'd like to see this fixed sooner, add a 👍 reaction to this post.

@Comandeer Comandeer added the type:bug This issue reports a buggy (incorrect) behavior. label Jan 14, 2022
@NaincyKumariKnoldus
Copy link

Hey @Comandeer Can I do this?

@Reinmar Reinmar added domain:accessibility This issue reports an accessibility problem. squad:core Issue to be handled by the Core team. labels Jan 16, 2022
@Comandeer
Copy link
Member Author

@NaincyKumariKnoldus, yes, you can! Please note that your PR should include tests for the change. You can check our docs for more info about the testing environment.

@NaincyKumariKnoldus
Copy link

Hey @Comandeer Having a CLA is important for contributing? I dont have

@Reinmar
Copy link
Member

Reinmar commented Jan 19, 2022

You will be asked to sign it after you make a PR. It can be done completely online :) It's a standard procedure that secures the project from odd copyrights problems.

@NaincyKumariKnoldus
Copy link

Hey @Reinmar I am not able to find aria-pressed undefined here.

@pomek
Copy link
Member

pomek commented Feb 16, 2022

@pomek pomek added squad:devops Issue to be handled by the Devops team. and removed squad:core Issue to be handled by the Core team. labels Feb 16, 2022
@mlewand mlewand added intro Good first ticket. squad:core Issue to be handled by the Core team. squad:features Issue to be handled by the Features team. labels Jun 29, 2022
@CKEditorBot CKEditorBot added the status:planned Set automatically when an issue lands in the "Sprint backlog" column. We will be working on it soon. label Jun 29, 2022
@pomek pomek removed the squad:devops Issue to be handled by the Devops team. label Jul 4, 2022
@CKEditorBot CKEditorBot added status:in-progress Set automatically when an issue lands in the "In progress" column. We are working on it. and removed status:planned Set automatically when an issue lands in the "Sprint backlog" column. We will be working on it soon. labels Jul 8, 2022
@mmotyczynska mmotyczynska self-assigned this Jul 11, 2022
oleq added a commit that referenced this issue Jul 15, 2022
…ed-in-switch

Fix (ui): The default value of the `aria-pressed` DOM attribute of a [toggleable](https://ckeditor.com/docs/ckeditor5/latest/api/module_ui_button_button-Button.html#member-isToggleable) button should be `false` instead of `undefined`. Closes #11115.
@CKEditorBot CKEditorBot removed the status:in-progress Set automatically when an issue lands in the "In progress" column. We are working on it. label Jul 15, 2022
@Reinmar Reinmar added this to the iteration 55 milestone Jul 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
domain:accessibility This issue reports an accessibility problem. intro Good first ticket. squad:core Issue to be handled by the Core team. squad:features Issue to be handled by the Features team. type:bug This issue reports a buggy (incorrect) behavior.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

8 participants