Skip to content

Add HCM disabled styles for stepper and tabs #25393

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

Merged
merged 2 commits into from
Nov 6, 2022

Conversation

jelbourn
Copy link
Member

@jelbourn jelbourn commented Aug 3, 2022

No description provided.

@jelbourn jelbourn added Accessibility This issue is related to accessibility (a11y) target: patch This PR is targeted for the next patch release area: material/stepper area: material/tabs labels Aug 3, 2022
@jelbourn jelbourn requested a review from zarend August 3, 2022 18:38
// color, which is (unintuitively) named "GrayText".
@include cdk.high-contrast(active, off) {
&[aria-disabled="true"] {
color: GrayText;
Copy link
Member

Choose a reason for hiding this comment

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

There's also a DisabledText color IIRC. Should we be using that instead?

Copy link
Member

Choose a reason for hiding this comment

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

Nevermind, I just double-checked it and it's indeed GreyText. We may want to check it against Firefox though since I saw this comment: https://github.com/angular/components/blob/main/src/material/legacy-core/option/option.scss#L40

@zarend
Copy link
Contributor

zarend commented Aug 3, 2022

lmk if you want me to test this on Windows.

@jelbourn jelbourn force-pushed the hcm-disables-style branch from 1e917b7 to 07deb15 Compare August 4, 2022 17:27
@jelbourn
Copy link
Member Author

jelbourn commented Aug 4, 2022

I tested this in Chrome on Windows (on my personal PC), but I did forget to test Firefox. I'll double check it tomorrow when I WFH.

This adds disabled styles for stepper header in high contrast mode
This adds disabled styles for tab labels in high contrast mode
@jelbourn jelbourn force-pushed the hcm-disables-style branch from 07deb15 to e2d65d7 Compare August 18, 2022 19:26
@jelbourn
Copy link
Member Author

Just tested this on Firefox and it looks right

Copy link
Member

@crisbeto crisbeto left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Contributor

@zarend zarend left a comment

Choose a reason for hiding this comment

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

LGTM

@jelbourn jelbourn added the action: merge The PR is ready for merge by the caretaker label Aug 19, 2022
@andrewseguin andrewseguin self-assigned this Sep 20, 2022
@wagnermaciel wagnermaciel added target: rc This PR is targeted for the next release-candidate and removed target: patch This PR is targeted for the next patch release labels Nov 6, 2022
@wagnermaciel wagnermaciel merged commit bdec140 into angular:main Nov 6, 2022
wagnermaciel pushed a commit that referenced this pull request Nov 6, 2022
* fix(material/stepper): add HCM disabled styles

This adds disabled styles for stepper header in high contrast mode

* fix(material/tabs): add HCM disabled styles

This adds disabled styles for tab labels in high contrast mode

(cherry picked from commit bdec140)
wagnermaciel pushed a commit to wagnermaciel/components that referenced this pull request Nov 7, 2022
* fix(material/stepper): add HCM disabled styles

This adds disabled styles for stepper header in high contrast mode

* fix(material/tabs): add HCM disabled styles

This adds disabled styles for tab labels in high contrast mode
wagnermaciel pushed a commit to wagnermaciel/components that referenced this pull request Nov 7, 2022
* fix(material/stepper): add HCM disabled styles

This adds disabled styles for stepper header in high contrast mode

* fix(material/tabs): add HCM disabled styles

This adds disabled styles for tab labels in high contrast mode
wagnermaciel pushed a commit to wagnermaciel/components that referenced this pull request Nov 7, 2022
…ngular#25393)

* fix(material/stepper): add HCM disabled styles

This adds disabled styles for stepper header in high contrast mode

* fix(material/tabs): add HCM disabled styles

This adds disabled styles for tab labels in high contrast mode
wagnermaciel added a commit that referenced this pull request Nov 7, 2022
…25393) (#25932)

* fix(material/stepper): add HCM disabled styles

This adds disabled styles for stepper header in high contrast mode

* fix(material/tabs): add HCM disabled styles

This adds disabled styles for tab labels in high contrast mode

Co-authored-by: Jeremy Elbourn <[email protected]>
crapStone pushed a commit to Calciumdibromid/CaBr2 that referenced this pull request Nov 11, 2022
This PR contains the following updates:

| Package | Type | Update | Change |
|---|---|---|---|
| [@angular/cdk](https://github.com/angular/components) | dependencies | patch | [`14.2.6` -> `14.2.7`](https://renovatebot.com/diffs/npm/@angular%2fcdk/14.2.6/14.2.7) |
| [@angular/material](https://github.com/angular/components) | dependencies | patch | [`14.2.6` -> `14.2.7`](https://renovatebot.com/diffs/npm/@angular%2fmaterial/14.2.6/14.2.7) |

---

### Release Notes

<details>
<summary>angular/components</summary>

### [`v14.2.7`](https://github.com/angular/components/blob/HEAD/CHANGELOG.md#&#8203;1427-smoke-spirit-2022-11-09)

[Compare Source](angular/components@14.2.6...14.2.7)

##### cdk

| Commit | Type | Description |
| -- | -- | -- |
| [f63918a3b8](angular/components@f63918a) | fix | **scrolling:** error when querying for CdkVirtualScrollViewport as CdkScrollable ([#&#8203;25937](angular/components#25937)) |

##### material

| Commit | Type | Description |
| -- | -- | -- |
| [53588b51d2](angular/components@53588b5) | fix | **stepper:** add HCM disabled styles for stepper and tabs ([#&#8203;25393](angular/components#25393)) ([#&#8203;25932](angular/components#25932)) |
| [a1473b93fc](angular/components@a1473b9) | fix | **stepper:** content not visibile on first navigation when nested in tabs ([#&#8203;25930](angular/components#25930)) |

#### Special Thanks

Douglas Parker, Kristiyan Kostadinov and Wagner Maciel

<!-- CHANGELOG SPLIT MARKER -->

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about these updates again.

---

 - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box

---

This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNC4yMS4yIiwidXBkYXRlZEluVmVyIjoiMzQuMjIuMSJ9-->

Co-authored-by: cabr2-bot <[email protected]>
Reviewed-on: https://codeberg.org/Calciumdibromid/CaBr2/pulls/1635
Reviewed-by: Epsilon_02 <[email protected]>
Co-authored-by: Calciumdibromid Bot <[email protected]>
Co-committed-by: Calciumdibromid Bot <[email protected]>
@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Dec 7, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Accessibility This issue is related to accessibility (a11y) action: merge The PR is ready for merge by the caretaker area: material/stepper area: material/tabs target: rc This PR is targeted for the next release-candidate
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants