From 57f7ae23303f5bf1fae4618d934582b1954e3a1f Mon Sep 17 00:00:00 2001 From: Elliott Marquez Date: Tue, 16 May 2023 15:45:24 -0700 Subject: [PATCH] feat(listitem): add noninteractive to list item PiperOrigin-RevId: 532595788 --- list/demo/demo.ts | 1 + list/demo/stories.ts | 9 ++++++ list/lib/listitem/_list-item.scss | 2 +- list/lib/listitem/list-item-only.ts | 29 +++++++++++++++++++ list/lib/listitem/list-item.ts | 16 +++++------ list/lib/listitemlink/list-item-link-only.ts | 30 ++++++++++++++++++++ list/list-item-link.ts | 2 +- list/list-item.ts | 2 +- 8 files changed, 80 insertions(+), 11 deletions(-) create mode 100644 list/lib/listitem/list-item-only.ts create mode 100644 list/lib/listitemlink/list-item-link-only.ts diff --git a/list/demo/demo.ts b/list/demo/demo.ts index 349f73b945..e336452933 100644 --- a/list/demo/demo.ts +++ b/list/demo/demo.ts @@ -40,6 +40,7 @@ const collection = new Knob('md-list-item', {ui: title()}), new Knob('disabled', {ui: boolInput(), defaultValue: false}), + new Knob('noninteractive', {ui: boolInput(), defaultValue: false}), new Knob('active', {ui: boolInput(), defaultValue: false}), new Knob( 'multiLineSupportingText', {ui: boolInput(), defaultValue: false}), diff --git a/list/demo/stories.ts b/list/demo/stories.ts index c09dbd920d..ae260c39e8 100644 --- a/list/demo/stories.ts +++ b/list/demo/stories.ts @@ -19,6 +19,7 @@ export interface StoryKnobs { 'md-list-item': void; disabled: boolean; + noninteractive: boolean; active: boolean; multiLineSupportingText: boolean; headline: string; @@ -65,6 +66,7 @@ const standard: MaterialStoryInit = { const { listTabIndex, disabled, + noninteractive, active, multiLineSupportingText, headline, @@ -86,6 +88,7 @@ const standard: MaterialStoryInit = { .multiLineSupportingText=${multiLineSupportingText} .trailingSupportingText=${trailingSupportingText} .disabled=${disabled} + .noninteractive=${noninteractive} .itemTabIndex=${itemTabIndex} .active=${active}> @@ -96,6 +99,7 @@ const standard: MaterialStoryInit = { .multiLineSupportingText=${multiLineSupportingText} .trailingSupportingText=${trailingSupportingText} .disabled=${disabled} + .noninteractive=${noninteractive} .itemTabIndex=${itemTabIndex} .active=${active}> @@ -112,6 +116,7 @@ const standard: MaterialStoryInit = { .multiLineSupportingText=${multiLineSupportingText} .trailingSupportingText=${trailingSupportingText} .disabled=${disabled} + .noninteractive=${noninteractive} .itemTabIndex=${itemTabIndex} .href=${href} .target=${target} @@ -128,6 +133,7 @@ const standard: MaterialStoryInit = { .multiLineSupportingText=${multiLineSupportingText} .trailingSupportingText=${trailingSupportingText} .disabled=${disabled} + .noninteractive=${noninteractive} .itemTabIndex=${itemTabIndex} .active=${active}> @@ -139,6 +145,7 @@ const standard: MaterialStoryInit = { .multiLineSupportingText=${multiLineSupportingText} .trailingSupportingText=${trailingSupportingText} .disabled=${disabled} + .noninteractive=${noninteractive} .itemTabIndex=${itemTabIndex} .active=${active}> @@ -152,6 +159,7 @@ const standard: MaterialStoryInit = { .multiLineSupportingText=${multiLineSupportingText} .trailingSupportingText=${trailingSupportingText} .disabled=${disabled} + .noninteractive=${noninteractive} .itemTabIndex=${itemTabIndex} .active=${active}> @@ -163,6 +171,7 @@ const standard: MaterialStoryInit = { .multiLineSupportingText=${multiLineSupportingText} .trailingSupportingText=${trailingSupportingText} .disabled=${disabled} + .noninteractive=${noninteractive} .itemTabIndex=${itemTabIndex} .active=${active}>