You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It's a single bug. Do not report multiple bugs in one issue.
It's a frontend issue, not a backend issue; Otherwise please create an issue on the backend repo instead.
Summary
This relates to the show hide post button immediately after post headings on the home feed.
Details
The Show/Hide buttons are basically toggle buttons, so for them to behave properly using screenreaders and report when they are opened or closed they need to have the aria-pressed attribute added to them set to "false" as the default then set to "true" when opened.
The file which needs editing is /src/shared/components/post/post-listing.tsx starting at the button element on L803 in the ShowPreviewButton() function. The state should switch depending on whether "plus-square" or "minus-square" is used.
You can set the button to have aria-pressed="false" quite easily but it will not automatically switch to "true" when selected unless it is coded to do it using Typescript or Javascript. There is some information about this on the Bootstrap page on Buttons (Toggle States). Bootstrap says this will need to be added manually.
Steps to Reproduce
Turn on Orca
Go to the homepage
Tab to element <button class="btn btn-sm btn-link link-dark link-opacity-75 link-opacity-100-hover py-0 align-baseline" type="button">...</button>
Press Space Bar or Enter to toggle the button. There is no audio feedback on the button state.
Technical Details
Linux Ubuntu Jammy
On local instance or on the rblind.com instance
* Changed the definition of colorList to include CSS variables named like comment-node-#-color in _variables.scss. The values are currently the default values from hsl(#) so the look is the same, but this gives theme developers a way to edit the colour of comment borders. CSS themes would need to be re-exported. Importing hsl removed from color-list as it is no longer used.
* Ran pnpm themes:build.
* Ran prettier with -w on the variables file which corrected white space formatting.
* Added an aria-pressed attribute to the Show Content toggle button which will switch depending on state. Addresses issue #3050.
---------
Co-authored-by: travis-jeans <[email protected]>
Co-authored-by: Dessalines <[email protected]>
Co-authored-by: SleeplessOne1917 <[email protected]>
Uh oh!
There was an error while loading. Please reload this page.
Requirements
Summary
This relates to the show hide post button immediately after post headings on the home feed.
Details
The Show/Hide buttons are basically toggle buttons, so for them to behave properly using screenreaders and report when they are opened or closed they need to have the aria-pressed attribute added to them set to "false" as the default then set to "true" when opened.
The file which needs editing is /src/shared/components/post/post-listing.tsx starting at the button element on L803 in the ShowPreviewButton() function. The state should switch depending on whether "plus-square" or "minus-square" is used.
aria-pressed (MDN Docs)
You can set the button to have aria-pressed="false" quite easily but it will not automatically switch to "true" when selected unless it is coded to do it using Typescript or Javascript. There is some information about this on the Bootstrap page on Buttons (Toggle States). Bootstrap says this will need to be added manually.
Steps to Reproduce
<button class="btn btn-sm btn-link link-dark link-opacity-75 link-opacity-100-hover py-0 align-baseline" type="button">...</button>
Technical Details
Linux Ubuntu Jammy
On local instance or on the rblind.com instance
Lemmy Instance Version
BE: 0.19.10
Lemmy Instance URL
https://rblind.com/
The text was updated successfully, but these errors were encountered: