feat(core): first class a11y support (#8909)

This commit is contained in:
Morten Sjøgren
2021-01-29 20:51:51 +01:00
committed by Nathan Walker
parent ef9c3b1f5f
commit c46da3fad9
43 changed files with 2938 additions and 47 deletions

View File

@ -2,11 +2,15 @@ import { Button as ButtonDefinition } from '.';
import { TextBase } from '../text-base';
import { CSSType } from '../core/view';
import { booleanConverter } from '../core/view-base';
import { AccessibilityRole } from '../../accessibility';
@CSSType('Button')
export abstract class ButtonBase extends TextBase implements ButtonDefinition {
public static tapEvent = 'tap';
accessible = true;
accessibilityRole = AccessibilityRole.Button;
get textWrap(): boolean {
return this.style.whiteSpace === 'normal';
}