From 3671e994256b65c2b47e21375f3bd9f82cfa175a Mon Sep 17 00:00:00 2001 From: alex_ Date: Wed, 23 Oct 2024 11:24:03 +0200 Subject: [PATCH 01/51] renamed _accessKey to _badgeText for Span Refs: #6251 --- .../src/components/button/component.tsx | 2 +- .../src/components/link/component.tsx | 2 +- .../src/components/span/component.tsx | 24 +++++++++---------- .../components/src/components/span/readme.md | 4 ++-- .../src/components/tooltip/component.tsx | 2 +- .../components/src/schema/components/span.ts | 7 +++--- .../components/src/schema/props/badge-text.ts | 18 ++++++++++++++ packages/components/src/schema/props/index.ts | 1 + .../default/src/components/button-link.scss | 2 +- .../themes/default/src/mixins/button.scss | 2 +- .../src/ecl-ec/components/button-link.scss | 2 +- 11 files changed, 43 insertions(+), 23 deletions(-) create mode 100644 packages/components/src/schema/props/badge-text.ts diff --git a/packages/components/src/components/button/component.tsx b/packages/components/src/components/button/component.tsx index 1bc2d5d9cf..be76051851 100644 --- a/packages/components/src/components/button/component.tsx +++ b/packages/components/src/components/button/component.tsx @@ -134,7 +134,7 @@ export class KolButtonWc implements ButtonAPI, FocusableElement { > ) : ( - {this.state._accessKey && this.state._label.length ? ( - + {this.state._badgeText && this.state._label.length ? ( + ) : ( (this.state._label ?? '') )} @@ -55,9 +55,9 @@ export class KolSpanWc implements SpanAPI { - {this.state._accessKey && ( -