-
Notifications
You must be signed in to change notification settings - Fork 76
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(tab-title): add icon start/end custom CSS prop
- Loading branch information
Showing
6 changed files
with
266 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,113 @@ | ||
import { html } from "../../support/formatting"; | ||
|
||
export const tabs = html`<calcite-tabs> | ||
<calcite-tab-nav slot="title-group"> | ||
<calcite-tab-title selected>Tab 1 Title</calcite-tab-title> | ||
<calcite-tab-title>Tab 2 Title</calcite-tab-title> | ||
<calcite-tab-title>Tab 3 Title</calcite-tab-title> | ||
<calcite-tab-title>Tab 4 Title</calcite-tab-title> | ||
</calcite-tab-nav> | ||
</calcite-tabs>`; | ||
export const tabsTokens = { | ||
// additional tokens will be added in https://github.com/Esri/calcite-design-system/pull/10532/ | ||
calciteTabEndIconColor: "", | ||
calciteTabStartIconColor: "", | ||
}; | ||
|
||
export const tabs = html` | ||
<style> | ||
calcite-tabs { | ||
width: 400px; | ||
} | ||
</style> | ||
<calcite-tabs position="bottom"> | ||
<calcite-tab-nav slot="title-group"> | ||
<calcite-tab-title closable icon-start="arrow-left" icon-end="arrow-right" selected | ||
>Tab 1 Title | ||
</calcite-tab-title> | ||
<calcite-tab-title closable icon-start="arrow-left" icon-end="arrow-right">Tab 2 Title</calcite-tab-title> | ||
<calcite-tab-title closable icon-start="arrow-left" icon-end="arrow-right">Tab 3 Title</calcite-tab-title> | ||
<calcite-tab-title closable icon-start="arrow-left" icon-end="arrow-right">Tab 4 Title</calcite-tab-title> | ||
<calcite-tab-title closable icon-start="arrow-left" icon-end="arrow-right">Tab 5 Title</calcite-tab-title> | ||
<calcite-tab-title closable icon-start="arrow-left" icon-end="arrow-right">Tab 6 Title</calcite-tab-title> | ||
<calcite-tab-title closable icon-start="arrow-left" icon-end="arrow-right">Tab 7 Title</calcite-tab-title> | ||
<calcite-tab-title closable icon-start="arrow-left" icon-end="arrow-right">Tab 8 Title</calcite-tab-title> | ||
</calcite-tab-nav> | ||
<calcite-tab selected>Tab 1 Content</calcite-tab> | ||
<calcite-tab>Tab 2 Content</calcite-tab> | ||
<calcite-tab>Tab 3 Content</calcite-tab> | ||
<calcite-tab>Tab 4 Content</calcite-tab> | ||
<calcite-tab>Tab 5 Content</calcite-tab> | ||
<calcite-tab>Tab 6 Content</calcite-tab> | ||
<calcite-tab>Tab 7 Content</calcite-tab> | ||
<calcite-tab>Tab 8 Content</calcite-tab> | ||
</calcite-tabs> | ||
<br /> | ||
<calcite-tabs position="top"> | ||
<calcite-tab-nav slot="title-group"> | ||
<calcite-tab-title closable icon-start="arrow-left" icon-end="arrow-right" selected | ||
>Tab 1 Title | ||
</calcite-tab-title> | ||
<calcite-tab-title closable icon-start="arrow-left" icon-end="arrow-right">Tab 2 Title</calcite-tab-title> | ||
<calcite-tab-title closable icon-start="arrow-left" icon-end="arrow-right">Tab 3 Title</calcite-tab-title> | ||
<calcite-tab-title closable icon-start="arrow-left" icon-end="arrow-right">Tab 4 Title</calcite-tab-title> | ||
<calcite-tab-title closable icon-start="arrow-left" icon-end="arrow-right">Tab 5 Title</calcite-tab-title> | ||
<calcite-tab-title closable icon-start="arrow-left" icon-end="arrow-right">Tab 6 Title</calcite-tab-title> | ||
<calcite-tab-title closable icon-start="arrow-left" icon-end="arrow-right">Tab 7 Title</calcite-tab-title> | ||
<calcite-tab-title closable icon-start="arrow-left" icon-end="arrow-right">Tab 8 Title</calcite-tab-title> | ||
</calcite-tab-nav> | ||
<calcite-tab selected>Tab 1 Content</calcite-tab> | ||
<calcite-tab>Tab 2 Content</calcite-tab> | ||
<calcite-tab>Tab 3 Content</calcite-tab> | ||
<calcite-tab>Tab 4 Content</calcite-tab> | ||
<calcite-tab>Tab 5 Content</calcite-tab> | ||
<calcite-tab>Tab 6 Content</calcite-tab> | ||
<calcite-tab>Tab 7 Content</calcite-tab> | ||
<calcite-tab>Tab 8 Content</calcite-tab> | ||
</calcite-tabs> | ||
`; | ||
|
||
export const tabsBordered = html` | ||
<style> | ||
calcite-tabs { | ||
width: 400px; | ||
} | ||
</style> | ||
<calcite-tabs bordered position="bottom"> | ||
<calcite-tab-nav slot="title-group"> | ||
<calcite-tab-title closable icon-start="arrow-left" icon-end="arrow-right" selected | ||
>Tab 1 Title | ||
</calcite-tab-title> | ||
<calcite-tab-title closable icon-start="arrow-left" icon-end="arrow-right">Tab 2 Title</calcite-tab-title> | ||
<calcite-tab-title closable icon-start="arrow-left" icon-end="arrow-right">Tab 3 Title</calcite-tab-title> | ||
<calcite-tab-title closable icon-start="arrow-left" icon-end="arrow-right">Tab 4 Title</calcite-tab-title> | ||
<calcite-tab-title closable icon-start="arrow-left" icon-end="arrow-right">Tab 5 Title</calcite-tab-title> | ||
<calcite-tab-title closable icon-start="arrow-left" icon-end="arrow-right">Tab 6 Title</calcite-tab-title> | ||
<calcite-tab-title closable icon-start="arrow-left" icon-end="arrow-right">Tab 7 Title</calcite-tab-title> | ||
<calcite-tab-title closable icon-start="arrow-left" icon-end="arrow-right">Tab 8 Title</calcite-tab-title> | ||
</calcite-tab-nav> | ||
<calcite-tab selected>Tab 1 Content</calcite-tab> | ||
<calcite-tab>Tab 2 Content</calcite-tab> | ||
<calcite-tab>Tab 3 Content</calcite-tab> | ||
<calcite-tab>Tab 4 Content</calcite-tab> | ||
<calcite-tab>Tab 5 Content</calcite-tab> | ||
<calcite-tab>Tab 6 Content</calcite-tab> | ||
<calcite-tab>Tab 7 Content</calcite-tab> | ||
<calcite-tab>Tab 8 Content</calcite-tab> | ||
</calcite-tabs> | ||
<br /> | ||
<calcite-tabs position="top"> | ||
<calcite-tab-nav slot="title-group"> | ||
<calcite-tab-title closable icon-start="arrow-left" icon-end="arrow-right" selected | ||
>Tab 1 Title | ||
</calcite-tab-title> | ||
<calcite-tab-title closable icon-start="arrow-left" icon-end="arrow-right">Tab 2 Title</calcite-tab-title> | ||
<calcite-tab-title closable icon-start="arrow-left" icon-end="arrow-right">Tab 3 Title</calcite-tab-title> | ||
<calcite-tab-title closable icon-start="arrow-left" icon-end="arrow-right">Tab 4 Title</calcite-tab-title> | ||
<calcite-tab-title closable icon-start="arrow-left" icon-end="arrow-right">Tab 5 Title</calcite-tab-title> | ||
<calcite-tab-title closable icon-start="arrow-left" icon-end="arrow-right">Tab 6 Title</calcite-tab-title> | ||
<calcite-tab-title closable icon-start="arrow-left" icon-end="arrow-right">Tab 7 Title</calcite-tab-title> | ||
<calcite-tab-title closable icon-start="arrow-left" icon-end="arrow-right">Tab 8 Title</calcite-tab-title> | ||
</calcite-tab-nav> | ||
<calcite-tab selected>Tab 1 Content</calcite-tab> | ||
<calcite-tab>Tab 2 Content</calcite-tab> | ||
<calcite-tab>Tab 3 Content</calcite-tab> | ||
<calcite-tab>Tab 4 Content</calcite-tab> | ||
<calcite-tab>Tab 5 Content</calcite-tab> | ||
<calcite-tab>Tab 6 Content</calcite-tab> | ||
<calcite-tab>Tab 7 Content</calcite-tab> | ||
<calcite-tab>Tab 8 Content</calcite-tab> | ||
</calcite-tabs> | ||
`; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters