Skip to content

Conversation

andrewseguin
Copy link
Contributor

No description provided.

@andrewseguin andrewseguin requested review from jelbourn and mmalerba May 10, 2018 17:26
@andrewseguin andrewseguin requested a review from amcdnl as a code owner May 10, 2018 17:26
@googlebot googlebot added the cla: yes PR author has agreed to Google's Contributor License Agreement label May 10, 2018
Copy link
Member

@jelbourn jelbourn left a comment

Choose a reason for hiding this comment

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

This definitely doesn't look like sticky headers 😉

@@ -0,0 +1,11 @@
button[matTooltip] {
Copy link
Member

Choose a reason for hiding this comment

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

Make this an .example-... class. The goal to to ensure that people inspecting the elements know what the real styles are vs. the example styles.

margin-top: 16px;
}

::ng-deep .example-tooltip-red {
Copy link
Member

Choose a reason for hiding this comment

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

No ng-deep

<mat-form-field>
<mat-select placeholder="Tooltip position" [formControl]="position">
<mat-option *ngFor="let positionOption of positionOptions" [value]="positionOption">
{{ positionOption }}
Copy link
Member

Choose a reason for hiding this comment

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

Omit spaces in braces

@@ -0,0 +1,7 @@
button {
Copy link
Member

Choose a reason for hiding this comment

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

Use a .example-... class

(here and elsewhere)

@@ -78,7 +78,9 @@
"selector-pseudo-class-parentheses-space-inside": "never",
"selector-pseudo-element-case": "lower",
"selector-pseudo-element-colon-notation": "double",
"selector-pseudo-element-no-unknown": true,
"selector-pseudo-class-no-unknown": [true, {
"ignorePseudoClasses": ["ng-deep", "label-shown"]
Copy link
Member

Choose a reason for hiding this comment

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

What is label-shown?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Dunno why but :label-shown in the form-field was failing lint if I added ng-deep as an exception

matTooltip="Info about the action"
[matTooltipClass]="tooltipClass">
Action
</button>
Copy link
Member

Choose a reason for hiding this comment

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

For the buttons in these examples, it would be good to add an aria-label that explains what is being demonstrated therein.

My tooltip waits one second to show
</button>
<mat-form-field>
<input matInput placeholder="Show delay (milliseconds)"
Copy link
Member

Choose a reason for hiding this comment

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

These inputs need an aria-label that expands on "Show delay"

@andrewseguin andrewseguin force-pushed the demo-tooltip-examples branch from f5af8e4 to 7599590 Compare May 10, 2018 19:01
@andrewseguin andrewseguin force-pushed the demo-tooltip-examples branch from 7599590 to b989ec0 Compare May 10, 2018 19:14
@andrewseguin
Copy link
Contributor Author

All set - added aria-labels to the buttons

Copy link
Member

@jelbourn jelbourn 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 pr: lgtm action: merge The PR is ready for merge by the caretaker and removed pr: needs review labels May 10, 2018
@jelbourn jelbourn merged commit 68f2890 into angular:master May 10, 2018
@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 Sep 8, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
action: merge The PR is ready for merge by the caretaker cla: yes PR author has agreed to Google's Contributor License Agreement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants