Skip to content

Commit

Permalink
fix: rebase
Browse files Browse the repository at this point in the history
  • Loading branch information
DavideMininni-Fincons committed Mar 28, 2024
1 parent c3200b4 commit 673be75
Show file tree
Hide file tree
Showing 8 changed files with 12 additions and 45 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ snapshots["sbb-autocomplete-grid-button renders disabled Dom"] =
dir="ltr"
disabled=""
icon-name="pie-small"
id="sbb-autocomplete-grid-item-4x1x0"
id="sbb-autocomplete-grid-item-3x1x0"
role="button"
>
</sbb-autocomplete-grid-button>
Expand Down Expand Up @@ -115,7 +115,7 @@ snapshots["sbb-autocomplete-grid-button renders negative without icon Dom"] =
data-action=""
data-button=""
dir="ltr"
id="sbb-autocomplete-grid-item-7x1x0"
id="sbb-autocomplete-grid-item-5x1x0"
negative=""
role="button"
>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,8 @@ const TemplateOptgroup = ({ label, disabled, ...args }: Args): TemplateResult =>

const Template = (args: Args): TemplateResult => {
return html`
<sbb-form-field label="Autocomplete" ?negative=${args.negative}>
<sbb-form-field ?negative=${args.negative}>
<label>Autocomplete</label>
<input placeholder="Placeholder" />
<sbb-autocomplete-grid>${TemplateOptgroup(args)}</sbb-autocomplete-grid>
</sbb-form-field>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ snapshots["sbb-autocomplete-grid-option disabled Dom"] =
aria-selected="false"
data-slot-names="unnamed"
disabled=""
id="sbb-autocomplete-grid-item-4x0"
id="sbb-autocomplete-grid-item-3x0"
role="gridcell"
value="1"
>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,8 @@ const createOptions = ({
const StandaloneTemplate = (args: Args): TemplateResult => html`${createOptions(args)}`;

const AutocompleteTemplate = (args: Args): TemplateResult => html`
<sbb-form-field label="sbb-autocomplete-grid" ?negative=${args.negative}>
<sbb-form-field ?negative=${args.negative}>
<label>sbb-autocomplete-grid</label>
<input placeholder="Please select." />
<sbb-autocomplete-grid> ${createOptions(args)} </sbb-autocomplete-grid>
</sbb-form-field>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { hostAttributes, SbbOptionBaseElement } from '../../core/common-behavior
import { EventEmitter } from '../../core/eventing';

import '../../icon';
import '../../screenreader-only';
import '../../screen-reader-only';
import style from './autocomplete-grid-option.scss?lit&inline';

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -314,12 +314,12 @@ const createRows2 = (buttonIconName: string, disableOption: boolean): TemplateRe
const Template = (args: Args): TemplateResult => html`
<div>
<sbb-form-field
label="Label"
?negative=${args.negative}
?borderless=${args.borderless}
?floating-label=${args.floatingLabel}
data-testid="form-field"
>
<label>Label</label>
<input
placeholder="Placeholder"
data-testid="autocomplete-input"
Expand Down Expand Up @@ -348,12 +348,12 @@ const Template = (args: Args): TemplateResult => html`
const OptionGroupTemplate = (args: Args): TemplateResult => html`
<div>
<sbb-form-field
label="Label"
?negative=${args.negative}
?borderless=${args.borderless}
?floating-label=${args.floatingLabel}
data-testid="form-field"
>
<label>Label</label>
<input
placeholder="Placeholder"
data-testid="autocomplete-input"
Expand Down
4 changes: 2 additions & 2 deletions src/components/core/common-behaviors/option-base-element.ts
Original file line number Diff line number Diff line change
Expand Up @@ -195,8 +195,8 @@ export abstract class SbbOptionBaseElement extends SbbDisabledMixin(SbbIconNameM
<slot @slotchange=${this.setupHighlightHandler}></slot>
${this.renderLabel()}
${this._inertAriaGroups && this.getAttribute('data-group-label')
? html` <sbb-screenreader-only>
(${this.getAttribute('data-group-label')})</sbb-screenreader-only
? html` <sbb-screen-reader-only>
(${this.getAttribute('data-group-label')})</sbb-screen-reader-only
>`
: nothing}
</span>
Expand Down

This file was deleted.

0 comments on commit 673be75

Please sign in to comment.