-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
docs(buttons): add aria-attributes #4082
docs(buttons): add aria-attributes #4082
Conversation
Codecov Report
@@ Coverage Diff @@
## development #4082 +/- ##
============================================
Coverage 72.29% 72.29%
============================================
Files 254 254
Lines 8266 8266
Branches 1579 1579
============================================
Hits 5976 5976
Misses 1868 1868
Partials 422 422
Continue to review full report at Codecov.
|
@@ -26,11 +26,13 @@ export const CHECKBOX_CONTROL_VALUE_ACCESSOR: any = { | |||
}) | |||
export class ButtonCheckboxDirective implements ControlValueAccessor, OnInit { | |||
/** Truthy value, will be set to ngModel */ | |||
@Input() btnCheckboxTrue: any = true; | |||
@Input() btnCheckboxTrue = true; |
This comment was marked as off-topic.
This comment was marked as off-topic.
Sorry, something went wrong.
<button type="button" class="btn btn-primary" [disabled]="disabled">Button</button> | ||
<button type="button" class="btn btn-warning" (click)="disabled = !disabled">Enable/Disable</button> | ||
<button type="button" class="btn btn-primary" [disabled]="disabled" [attr.aria-disabled]="disabled">Button</button> | ||
<button type="button" class="btn btn-warning" (click)="isDisabled()" [attr.aria-pressed]="isPressed">Enable/Disable</button> |
This comment was marked as off-topic.
This comment was marked as off-topic.
Sorry, something went wrong.
@@ -1,9 +0,0 @@ | |||
import { Component } from '@angular/core'; |
This comment was marked as off-topic.
This comment was marked as off-topic.
Sorry, something went wrong.
Closes #4068
PR Checklist
Before creating new PR, please take a look at checklist below to make sure that you've done everything that needs to be done before we can merge it.