Skip to content

Commit c8cbcf8

Browse files
committed
fix: remove class attribute from <Host> for Shadow DOM compliance across multiple components
1 parent 1c2c4ba commit c8cbcf8

File tree

9 files changed

+9
-9
lines changed

9 files changed

+9
-9
lines changed

packages/components/src/components/abbr/shadow.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ import { validateLabel } from '../../schema';
2020
export class KolAbbr implements AbbrAPI {
2121
public render(): JSX.Element {
2222
return (
23-
<Host class="kol-abbr">
23+
<Host>
2424
{/* eslint-disable-next-line jsx-a11y/no-noninteractive-tabindex */}
2525
<abbr tabIndex={this.state._label ? 0 : undefined}>
2626
<slot />

packages/components/src/components/drawer/shadow.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ export class KolDrawer implements DrawerAPI {
8686
};
8787
public render(): JSX.Element {
8888
return (
89-
<Host class="kol-drawer">
89+
<Host>
9090
<dialog aria-label={this.state._label} class="kol-drawer__dialog" onCancel={handleCancelOverlay} ref={this.getRef}>
9191
{this.renderDialogContent()}
9292
</dialog>

packages/components/src/components/pagination/component.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ export class KolPaginationWc implements PaginationAPI {
115115
});
116116

117117
return (
118-
<Host class="kol-pagination">
118+
<Host>
119119
<span role="status" aria-live="polite" class="kol-pagination__entries">
120120
{translate('kol-table-visible-range', {
121121
placeholders: {

packages/components/src/components/select/shadow.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ export class KolSelect implements SelectProps, FocusableElement {
5757

5858
public render(): JSX.Element {
5959
return (
60-
<Host class="kol-select">
60+
<Host>
6161
<KolSelectWcTag
6262
ref={this.setSelectWcRef}
6363
_accessKey={this._accessKey}

packages/components/src/components/spin/component.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ export class KolSpin extends BaseWebComponent<SpinApi> implements WebComponentIn
6363

6464
public render(): JSX.Element {
6565
return (
66-
<Host class="kol-spin">
66+
<Host>
6767
<SpinFC
6868
show={this.ctrl.getRenderProp('show')}
6969
label={this.ctrl.getRenderProp('label')}

packages/components/src/components/table-stateful/shadow.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -576,7 +576,7 @@ export class KolTableStateful implements TableAPI {
576576
) ?? [],
577577
};
578578
return (
579-
<Host class="kol-table-stateful">
579+
<Host>
580580
{this.pageEndSlice > 0 && this.showPagination && paginationTop}
581581
<KolTableStatelessWcTag
582582
ref={this.catchRef}

packages/components/src/components/toaster/shadow.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ export class KolToastContainer implements ToasterAPI {
133133

134134
public render(): JSX.Element {
135135
return (
136-
<Host class="kol-toast-container">
136+
<Host>
137137
{this.state._toastStates.length > 1 && (
138138
<KolButtonTag
139139
_label={this.translateToastCloseAll}

packages/components/src/components/tooltip/component.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ export class KolTooltipWc implements TooltipAPI {
188188

189189
public render(): JSX.Element {
190190
return (
191-
<Host class="kol-tooltip">
191+
<Host>
192192
<div class="kol-tooltip__floating" hidden={this.state._label.length === 0} ref={this.catchTooltipElement}>
193193
<div class="kol-tooltip__arrow" ref={this.catchArrowElement} />
194194
<SpanFC class="kol-tooltip__content" id={this.state._id} badgeText={this._badgeText} label={this.state._label} />

packages/components/src/components/version/shadow.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ export class KolVersion implements VersionAPI {
1818
private readonly translateVersion = translate('kol-version');
1919
public render(): JSX.Element {
2020
return (
21-
<Host class="kol-version">
21+
<Host>
2222
<KolBadgeTag
2323
_color="#bec5c9"
2424
_icons={{

0 commit comments

Comments
 (0)