Skip to content

Commit

Permalink
fix(slider): ensure z-index in Express theme
Browse files Browse the repository at this point in the history
  • Loading branch information
Westbrook committed Oct 4, 2023
1 parent 63a06f4 commit c0cc655
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 1 deletion.
2 changes: 1 addition & 1 deletion packages/slider/src/HandleController.ts
Original file line number Diff line number Diff line change
Expand Up @@ -533,7 +533,7 @@ export class HandleController {
public render(): TemplateResult[] {
this.clearHandleComponentCache();
return this.model.map((model, index) => {
const zIndex = this.handleOrder.indexOf(model.name) + 1;
const zIndex = this.handleOrder.indexOf(model.name) + 2;
return this.renderHandle(
model,
index,
Expand Down
20 changes: 20 additions & 0 deletions packages/slider/stories/slider.stories.ts
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,26 @@ export const Default = (args: StoryArgs = {}): TemplateResult => {
`;
};

export const autofocus = (args: StoryArgs = {}): TemplateResult => {
return html`
<div style="width: 500px; margin-inline: 20px;">
<sp-slider
autofocus
max="1"
min="0"
value=".5"
step="0.01"
@input=${handleEvent(args)}
@change=${handleEvent(args)}
.formatOptions=${{ style: 'percent' }}
...=${spreadProps(args)}
>
Opacity
</sp-slider>
</div>
`;
};

export const minimalDOM = (): TemplateResult => {
return html`
<div style="width: 500px; margin: 12px 20px;">
Expand Down

0 comments on commit c0cc655

Please # to comment.