-
Notifications
You must be signed in to change notification settings - Fork 6.8k
chore(tooltip): improve examples; use on demo app #11272
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
Conversation
There was a problem hiding this 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] { |
There was a problem hiding this comment.
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 { |
There was a problem hiding this comment.
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 }} |
There was a problem hiding this comment.
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 { |
There was a problem hiding this comment.
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)
stylelint-config.json
Outdated
@@ -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"] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What is label-shown
?
There was a problem hiding this comment.
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> |
There was a problem hiding this comment.
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)" |
There was a problem hiding this comment.
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"
f5af8e4
to
7599590
Compare
7599590
to
b989ec0
Compare
All set - added aria-labels to the buttons |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
No description provided.