UNPKG

@visa/nova-angular

Version:

Visa Product Design System Nova Angular library

30 lines (29 loc) 1.61 kB
/** * Copyright (c) 2025 Visa, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. * **/ import { ButtonDirective } from '../button/button.directive'; import * as i0 from "@angular/core"; /** * This directive sets the role and aria-disabled attributes on \<a\> tags when disabled. Disabled \<a\> tags do not natively accept the disabled attribute, so this directive adds <code>role="link"</code> and <code>aria-disabled="true"</code>. Additionally, disabled \<a\> tags must not have an href attribute. For disabling \<button\> tags, <code>visit ButtonDisabledDirective</code>. */ export declare class ButtonAsDisabledATagDirective { private buttonHost; constructor(buttonHost: ButtonDirective); get hostDisabledRole(): string | void; get hostAriaDisabledRole(): string | void; static ɵfac: i0.ɵɵFactoryDeclaration<ButtonAsDisabledATagDirective, never>; static ɵdir: i0.ɵɵDirectiveDeclaration<ButtonAsDisabledATagDirective, "a[v-button], a[v-button-icon], a[v-button-stacked], a[v-panel-toggle]", never, {}, {}, never, never, true, never>; }