Skip to content

Commit

Permalink
refactor(infotip): heading is not required by ts (#2101)
Browse files Browse the repository at this point in the history
  • Loading branch information
LuLaValva authored Feb 16, 2024
1 parent f586c12 commit 051a5bc
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ interface TooltipOverlayInput {
"style-right"?: string;
"style-bottom"?: string;
heading?: Marko.Input<"span"> & {
as: Marko.NativeTags;
renderBody: Marko.Body;
};
as?: Marko.NativeTags;
renderBody?: Marko.Body;
} & Iterable<any>;
id?: string;
type: keyof typeof typeRoles;
content?: Marko.AttrTag<Marko.Input<"span">>;
Expand Down
8 changes: 4 additions & 4 deletions src/components/ebay-infotip/component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ interface InfotipInput extends Omit<Marko.Input<"span">, `on${string}`> {
placement?: TooltipBaseInput["placement"];
disabled?: boolean;
icon?: Marko.AttrTag<{ renderBody: Marko.Renderable }>;
heading: Marko.Input<"span"> & {
as: Marko.NativeTags;
renderBody: Marko.Renderable;
};
heading?: Marko.Input<"span"> & {
as?: Marko.NativeTags;
renderBody?: Marko.Renderable;
} & Iterable<any>;
content: Marko.AttrTag<Marko.Input<"span">>;
"a11y-close-button-text"?: AttrString;
"on-expand"?: () => void;
Expand Down
2 changes: 1 addition & 1 deletion src/components/ebay-infotip/examples/custom-icon.marko
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<ebay-infotip
a11y-close-text="Dismiss infotip"
a11y-close-button-text="Dismiss infotip"
aria-label="Important information">
<@icon>
<ebay-settings-24-icon/>
Expand Down
2 changes: 1 addition & 1 deletion src/components/ebay-section-title/examples/infotip.marko
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<@subtitle>Plus, guaranteed best prices.</@subtitle>
<@info>
<ebay-infotip
a11y-close-text="Dismiss infotip"
a11y-close-button-text="Dismiss infotip"
aria-label="Important information"
pointer="top-left">
<@heading>Important</@heading>
Expand Down
6 changes: 3 additions & 3 deletions src/components/ebay-section-title/index.marko
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ import type { AttrString } from 'marko/tags-html';

static interface SectionTitleInput extends Omit<Marko.Input<"div">, `on${string}` | "title"> {
"cta-text"?: AttrString;
title?: Omit<Marko.Input<"h2">, `on${string}`>;
title?: Marko.AttrTag<Omit<Marko.Input<"h2">, `on${string}`>>;
href?: string;
subtitle?: Omit<Marko.Input<"span">, `on${string}`>;
info?: Omit<Marko.Input<"div">, `on${string}`>;
subtitle?: Marko.AttrTag<Omit<Marko.Input<"span">, `on${string}`>>;
info?: Marko.AttrTag<Omit<Marko.Input<"div">, `on${string}`>>;
overflow?: Omit<Marko.Input<"div">, `on${string}`>;
}

Expand Down

0 comments on commit 051a5bc

Please sign in to comment.