Skip to content
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

Merged
merged 2 commits into from
Apr 25, 2018
Merged

docs(buttons): add aria-attributes #4082

merged 2 commits into from
Apr 25, 2018

Conversation

tarusin
Copy link
Contributor

@tarusin tarusin commented Mar 23, 2018

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.

  • read and followed the CONTRIBUTING.md guide.
  • built and tested the changes locally.
  • added/updated API documentation.
  • added/updated demos.

@codecov
Copy link

codecov bot commented Mar 23, 2018

Codecov Report

Merging #4082 into development will not change coverage.
The diff coverage is 100%.

Impacted file tree graph

@@             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
Impacted Files Coverage Δ
src/buttons/button-radio.directive.ts 81.81% <ø> (ø) ⬆️
src/buttons/button-checkbox.directive.ts 88.88% <100%> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 93719ef...0333d2f. Read the comment docs.

@ghost ghost assigned IlyaSurmay Mar 30, 2018
@ghost ghost added the in progress label Mar 30, 2018
@@ -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.

<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.

@@ -1,9 +0,0 @@
import { Component } from '@angular/core';

This comment was marked as off-topic.

@IlyaSurmay IlyaSurmay assigned tarusin and unassigned IlyaSurmay Apr 4, 2018
@YevheniiaMazur
Copy link

Not all described in linked issue aria-attributes were added (aria-disabled wasn't)
Issue description:
issuedescr
Demo with button, that can be disabled:
disabledemo

@valorkin valorkin merged commit 49ee88e into valor-software:development Apr 25, 2018
@ghost ghost removed the needs fix label Apr 25, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants