-
Notifications
You must be signed in to change notification settings - Fork 83
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
Visual label not provided for filter input fields #2244
Comments
@saychakraborty89 , I don't completely agree with the suggestion that labels should be exposed. The section mostly covers forms which the filtering editors aren't part of. Or in a broader sense the ability to clearly distinguish the purpose of the editor using visual ques. Labels will look quite out of place in the grid cells taking too much space and only providing redundant information as the editor's place in the columns clearly marks them as something affecting the column itself while the placeholder suggests filtering and the currently selected condition. In my opinion, if users want to add some context to the filtering, e.g. when they have custom filtering implemented that they want to guide end-users with, we can expose the ability to set titles to the editors. The title popup just fits the design and space constraints in the grid a lot better than labels. How does this suggestion sound? |
The trouble is not only with the custom filtering. The accessibility issue remains with normal filtering as well. So, even if you do this, the issue would remain open. |
@saychakraborty89 , we are already improving the |
We would not like to tamper with ig datagrid html, mostly because it is less likely to be accepted by our stakeholders. It would be great if you could provide an API which we could leverage. That way, people not opting for labels would find no impact. |
@saychakraborty89 , I understand. Could you please check the sample anyway and let me know if it's more or less what you'd expect as an end result? I really don't think the visual label would be used because the purpose of the editors can be inferred by their position and additional UI and it could also be read as an aria-label by nvda. Adding one just doesn't fit 95% of the grids where the width of columns is made as small as possible and if the label takes space from the editor it will hardly fit what end-users would like to write in it. If you agree on the general design we can add the label through an editor option but since it will be a new property, it will have to be handled as part of a feature cycle so we won't be able to deliver it that quickly. You should expect it around November. |
@saychakraborty89 , after discussing this internally a colleague gave a suggestion to expose the editor placeholder text option as a potential replacement for a full label. Currently it just displays the condition but it's not difficult to expose for modification. Would that work for you as an alternative or we would prefer a full separate label to the left or top of the current editor? |
The current usage of placeholder text illustrating the selected condition seems fair and useful. I would not recommend changing that for this issue. |
Description
This issue is being reported as per the discussion in support issue-C-00235203. The issue is that there are no accompanying labels with the inputs appearing next to filter buttons.
ignite-ui version: 23.2
Steps to reproduce
Violated Accessibility Guideline
This violates 3.3.2 - Labels or Instructions of WCAG 2.0 level A.
Result
Visual label is not provided for the edit-field "Contain".
Expected result
There should be a label descriptive enough to describe the purpose of the input fields next to the filter buttons.
Suggestions
As the datagrids would not know what a column means to the consumer, igGrid may provide an API to the consumer to provide a meaningful label to the filtering input, should the consumer find it necessary.
Attachments
Attach a sample if available, and screenshots, if applicable.
The text was updated successfully, but these errors were encountered: