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

feat(datagrid): add filter title #1645

Open
wants to merge 11 commits into
base: main
Choose a base branch
from

Conversation

valentin-mladenov
Copy link
Contributor

PR Checklist

Please check if your PR fulfills the following requirements:

  • Tests for the changes have been added (for bug fixes / features)
  • Docs have been added / updated (for bug fixes / features)
  • If applicable, have a visual design approval

PR Type

What kind of change does this PR introduce?

  • Bugfix
  • Feature
  • Code style update (formatting, local variables)
  • Refactoring (no functional changes, no api changes)
  • Build related changes
  • CI related changes
  • Documentation content changes
  • Other... Please describe:

What is the current behavior?

Datagrid filter dialog window have no title.
image

Issue Number: CDE-2483

What is the new behavior?

Datagrid filter dialog window have title similar to signpost tile position.
image

Does this PR introduce a breaking change?

  • Yes
  • No

Other information

@valentin-mladenov valentin-mladenov requested a review from a team December 13, 2024 09:05
@valentin-mladenov valentin-mladenov self-assigned this Dec 13, 2024
@valentin-mladenov valentin-mladenov marked this pull request as ready for review December 13, 2024 09:05
Copy link
Contributor

github-actions bot commented Dec 13, 2024

👋 @valentin-mladenov,

  • 🙏 The Clarity team thanks you for opening a pull request
  • 🎉 The build for this PR has succeeded
  • 🔍 The PR is now ready for review
  • 🍿 In the meantime, view a preview of this PR
  • 🖐 You can always follow up here. If you're a VMware employee, you can also reach us on our internal Clarity Support space

Thank you,

🤖 Clarity Release Bot

Copy link
Contributor

This PR introduces visual changes: b0c3885
If these changes are intended and correct, please cherry-pick the above commit to this PR.

git checkout datagrid-filter-title_cde-2483
git fetch https://github.com/vmware-clarity/ng-clarity.git b0c3885762da2cfea8ca61a279a98a673559f618
git cherry-pick b0c3885762da2cfea8ca61a279a98a673559f618
git push

Copy link
Contributor

This PR introduces visual changes: 93d8fa1
If these changes are intended and correct, please cherry-pick the above commit to this PR.

git checkout datagrid-filter-title_cde-2483
git fetch https://github.com/vmware-clarity/ng-clarity.git 93d8fa1478ab9ad7e4f7a925fe6a024fa31b59ef
git cherry-pick 93d8fa1478ab9ad7e4f7a925fe6a024fa31b59ef
git push

Copy link
Contributor

This PR introduces visual changes: 8dd2c8d
If these changes are intended and correct, please cherry-pick the above commit to this PR.

git checkout datagrid-filter-title_cde-2483
git fetch https://github.com/vmware-clarity/ng-clarity.git 8dd2c8de89bebc62cfea8d1500f877b7fb8f00ac
git cherry-pick 8dd2c8de89bebc62cfea8d1500f877b7fb8f00ac
git push

Copy link
Member

@kevinbuhmann kevinbuhmann left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See comments.

Also, the filter form control labels are larger than the filter popup title. I don't think that's correct.

projects/angular/src/data/datagrid/_datagrid.clarity.scss Outdated Show resolved Hide resolved
@@ -72,6 +73,7 @@ import { KeyNavigationGridController } from './utils/key-navigation-grid.control
[attr.aria-label]="commonStrings.keys.datagridFilterDialogAriaLabel"
>
<div class="datagrid-filter-close-wrapper">
<span class="datagrid-filter-title">{{ filterTitle }}</span>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Screen reader users might have difficulties with this not marked up as a heading. I'm not sure how to handle the heading level though.

There is an aria-label on the popup element, so maybe this is fine. I just want to make sure.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The popup aria-label doesn't have the column name. Maybe that should be changed.

Copy link
Contributor Author

@valentin-mladenov valentin-mladenov Dec 18, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The filter trigger already have aria-label similar to the filter title: {COLUMN} filter. That is already announced to the user via screen reader.
Adding the title have more value for the regular user. The title will be read by the screen reader anyway.
First will be popup aria-label and then the title, if I'm not mistaken.

@valentin-mladenov
Copy link
Contributor Author

valentin-mladenov commented Dec 18, 2024

See comments.

Also, the filter form control labels are larger than the filter popup title. I don't think that's correct.

The filter title is following the signpost title design spec. I'll double check with design.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants