| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
This sets the title of the rendered selection for a placeholder when it is displayed within a single select. This is not necessary for a multiple select because the placeholder is set on the search box which will properly convey the value of it and meets ARIA guidelines. Because single select boxes currently use a `textbox` role to convey the keyboard accessibility of the textbox area, and because that role is currently required in ARIA 1.1, it must be properly labelled using the `title`, `aria-label`, or `aria-labelledby` attribute. This currently happens for single selects without a placeholder, and single selects with a placeholder but with an active selection, because the `title` attribute is set to the title of the active selection. Because it only currently sets it for the active selection, this caused an edge case specific to placeholders for single selects where the selection was not properly labelled. The placeholder title follows the same rules for setting the attribute value as for the regular single select selection, except placeholders will also fall back to just using the text value of the placeholder element in the event that the `title` and `text` attributes are not specified on the placeholder data option.
This sets the title of the rendered selection for a placeholder when it is displayed within a single select. This is not necessary for a multiple select because the placeholder is set on the search box which will properly convey the value of it and meets ARIA guidelines. Because single select boxes currently use a `textbox` role to convey the keyboard accessibility of the textbox area, and because that role is currently required in ARIA 1.1, it must be properly labelled using the `title`, `aria-label`, or `aria-labelledby` attribute. This currently happens for single selects without a placeholder, and single selects with a placeholder but with an active selection, because the `title` attribute is set to the title of the active selection. Because it only currently sets it for the active selection, this caused an edge case specific to placeholders for single selects where the selection was not properly labelled. The placeholder title follows the same rules for setting the attribute value as for the regular single select selection, except placeholders will also fall back to just using the text value of the placeholder element in the event that the `title` and `text` attributes are not specified on the placeholder data option.
This sets the title of the rendered selection for a placeholder when it is displayed within a single select. This is not necessary for a multiple select because the placeholder is set on the search box which will properly convey the value of it and meets ARIA guidelines. Because single select boxes currently use a `textbox` role to convey the keyboard accessibility of the textbox area, and because that role is currently required in ARIA 1.1, it must be properly labelled using the `title`, `aria-label`, or `aria-labelledby` attribute. This currently happens for single selects without a placeholder, and single selects with a placeholder but with an active selection, because the `title` attribute is set to the title of the active selection. Because it only currently sets it for the active selection, this caused an edge case specific to placeholders for single selects where the selection was not properly labelled. The placeholder title follows the same rules for setting the attribute value as for the regular single select selection, except placeholders will also fall back to just using the text value of the placeholder element in the event that the `title` and `text` attributes are not specified on the placeholder data option.
| Back | FazBrowse Home | New Git URL |
This pull request includes a
The following changes were made
If this is related to an existing ticket, include a link to it as well.
Fixes #5963