diff --git a/src/components-examples/material/button/button-disabled-interactive/button-disabled-interactive-example.css b/src/components-examples/material/button/button-disabled-interactive/button-disabled-interactive-example.css new file mode 100644 index 000000000000..83117bf83c68 --- /dev/null +++ b/src/components-examples/material/button/button-disabled-interactive/button-disabled-interactive-example.css @@ -0,0 +1,3 @@ +button { + margin-right: 8px; +} diff --git a/src/components-examples/material/button/button-disabled-interactive/button-disabled-interactive-example.html b/src/components-examples/material/button/button-disabled-interactive/button-disabled-interactive-example.html new file mode 100644 index 000000000000..23b52d5c661f --- /dev/null +++ b/src/components-examples/material/button/button-disabled-interactive/button-disabled-interactive-example.html @@ -0,0 +1,10 @@ + + + diff --git a/src/components-examples/material/button/button-disabled-interactive/button-disabled-interactive-example.ts b/src/components-examples/material/button/button-disabled-interactive/button-disabled-interactive-example.ts new file mode 100644 index 000000000000..304ae4fea792 --- /dev/null +++ b/src/components-examples/material/button/button-disabled-interactive/button-disabled-interactive-example.ts @@ -0,0 +1,15 @@ +import {Component} from '@angular/core'; +import {MatButton} from '@angular/material/button'; +import {MatTooltip} from '@angular/material/tooltip'; + +/** + * @title Interactive disabled buttons + */ +@Component({ + selector: 'button-disabled-interactive-example', + templateUrl: 'button-disabled-interactive-example.html', + styleUrls: ['button-disabled-interactive-example.css'], + standalone: true, + imports: [MatButton, MatTooltip], +}) +export class ButtonDisabledInteractiveExample {} diff --git a/src/components-examples/material/button/index.ts b/src/components-examples/material/button/index.ts index 05a679de82b5..73a5072bd973 100644 --- a/src/components-examples/material/button/index.ts +++ b/src/components-examples/material/button/index.ts @@ -1,3 +1,4 @@ export {ButtonOverviewExample} from './button-overview/button-overview-example'; export {ButtonTypesExample} from './button-types/button-types-example'; +export {ButtonDisabledInteractiveExample} from './button-disabled-interactive/button-disabled-interactive-example'; export {ButtonHarnessExample} from './button-harness/button-harness-example'; diff --git a/src/dev-app/button/BUILD.bazel b/src/dev-app/button/BUILD.bazel index 2ab46182d0e8..9db19dfd6c77 100644 --- a/src/dev-app/button/BUILD.bazel +++ b/src/dev-app/button/BUILD.bazel @@ -11,7 +11,9 @@ ng_module( ], deps = [ "//src/material/button", + "//src/material/checkbox", "//src/material/icon", + "//src/material/tooltip", ], ) diff --git a/src/dev-app/button/button-demo.html b/src/dev-app/button/button-demo.html index a0c78a616a56..cb709018edb4 100644 --- a/src/dev-app/button/button-demo.html +++ b/src/dev-app/button/button-demo.html @@ -19,18 +19,52 @@
isDisabled: {{isDisabled}}
Button 1 as been clicked {{clickCounter}} times
-
+
+