Skip to content

Commit

Permalink
refactor: add modifier badge tag
Browse files Browse the repository at this point in the history
Replaces the `async` method marker with a generic marker that can also be used for static methods.

Related to angular/components#22786.
  • Loading branch information
crisbeto committed May 25, 2021
1 parent 4e08b84 commit cc017b9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/styles/_api-theme.scss
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
}
}

.docs-api-async-method-marker {
.docs-api-modifier-method-marker {
$async-method-marker-hue: if($is-dark-theme, 200, 400);
background-color: mat.get-color-from-palette($primary, $async-method-marker-hue);
color: mat.get-color-from-palette($primary, '#{$async-method-marker-hue}-contrast');
Expand Down
4 changes: 2 additions & 2 deletions src/styles/_api.scss
Original file line number Diff line number Diff line change
Expand Up @@ -85,11 +85,11 @@
font-size: 18px;
}

.docs-api-async-method-marker {
.docs-api-modifier-method-marker {
display: inline-block;
vertical-align: baseline;
padding: 2px 7px;
margin: 0 12px 0 0;
margin-right: 12px;
border-radius: 5px;
font-size: 13px;
}
Expand Down

0 comments on commit cc017b9

Please sign in to comment.