Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Emotion] EuiTabs #6311

Merged
merged 18 commits into from
Oct 27, 2022
Merged
Show file tree
Hide file tree
Changes from 9 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion src/components/index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,3 @@
@import 'steps/index';
@import 'suggest/index';
@import 'table/index';
@import 'tabs/index';
Original file line number Diff line number Diff line change
Expand Up @@ -324,13 +324,13 @@ exports[`EuiPageHeader props page content props are passed down is rendered 1`]
/>
<div
aria-label="aria-label"
class="euiTabs euiTabs--large testClass1 testClass2"
class="euiTabs euiTabs--large testClass1 testClass2 emotion-euiTabs-tabSizeStyles-size_l"
data-test-subj="test subject string"
role="tablist"
>
<button
aria-selected="true"
class="euiTab euiTab-isSelected"
class="euiTab euiTab-isSelected emotion-euiTab-euiTabSelected"
role="tab"
type="button"
>
Expand All @@ -342,7 +342,7 @@ exports[`EuiPageHeader props page content props are passed down is rendered 1`]
</button>
<button
aria-selected="false"
class="euiTab"
class="euiTab emotion-euiTab"
role="tab"
type="button"
>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -285,12 +285,12 @@ exports[`EuiPageHeaderContent props children is rendered even if content props a
class="euiSpacer euiSpacer--l emotion-euiSpacer-l"
/>
<div
class="euiTabs euiTabs--large"
class="euiTabs euiTabs--large emotion-euiTabs-tabSizeStyles-size_l"
role="tablist"
>
<button
aria-selected="true"
class="euiTab euiTab-isSelected"
class="euiTab euiTab-isSelected emotion-euiTab-euiTabSelected"
role="tab"
type="button"
>
Expand All @@ -302,7 +302,7 @@ exports[`EuiPageHeaderContent props children is rendered even if content props a
</button>
<button
aria-selected="false"
class="euiTab"
class="euiTab emotion-euiTab"
role="tab"
type="button"
>
Expand Down Expand Up @@ -574,12 +574,12 @@ exports[`EuiPageHeaderContent props tabs is rendered 1`] = `
Tab 1
</h1>
<div
class="euiTabs euiTabs--xlarge"
class="euiTabs euiTabs--xlarge emotion-euiTabs-tabSizeStyles-size_xl"
role="tablist"
>
<button
aria-selected="true"
class="euiTab euiTab-isSelected"
class="euiTab euiTab-isSelected emotion-euiTab-euiTabSelected"
role="tab"
type="button"
>
Expand All @@ -591,7 +591,7 @@ exports[`EuiPageHeaderContent props tabs is rendered 1`] = `
</button>
<button
aria-selected="false"
class="euiTab"
class="euiTab emotion-euiTab"
role="tab"
type="button"
>
Expand Down Expand Up @@ -624,13 +624,13 @@ exports[`EuiPageHeaderContent props tabs is rendered with tabsProps 1`] = `
</h1>
<div
aria-label="aria-label"
class="euiTabs euiTabs--xlarge testClass1 testClass2"
class="euiTabs euiTabs--xlarge testClass1 testClass2 emotion-euiTabs-tabSizeStyles-size_xl"
data-test-subj="test subject string"
role="tablist"
>
<button
aria-selected="true"
class="euiTab euiTab-isSelected"
class="euiTab euiTab-isSelected emotion-euiTab-euiTabSelected"
role="tab"
type="button"
>
Expand All @@ -642,7 +642,7 @@ exports[`EuiPageHeaderContent props tabs is rendered with tabsProps 1`] = `
</button>
<button
aria-selected="false"
class="euiTab"
class="euiTab emotion-euiTab"
role="tab"
type="button"
>
Expand Down
16 changes: 8 additions & 8 deletions src/components/tabs/__snapshots__/tab.test.tsx.snap
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@
exports[`EuiTab props append is rendered 1`] = `
<button
aria-selected="false"
class="euiTab"
class="euiTab emotion-euiTab"
role="tab"
type="button"
>
<span
class="euiTab__prepend"
class="euiTab__prepend css-1ttsu8e-prepend"
>
Append
</span>
Expand All @@ -23,7 +23,7 @@ exports[`EuiTab props append is rendered 1`] = `
exports[`EuiTab props disabled is rendered 1`] = `
<button
aria-selected="false"
class="euiTab euiTab-isDisabled"
class="euiTab euiTab-isDisabled emotion-euiTab"
disabled=""
role="tab"
type="button"
Expand All @@ -40,7 +40,7 @@ exports[`EuiTab props href renders anchor 1`] = `
<a
aria-label="aria-label"
aria-selected="false"
class="euiTab testClass1 testClass2"
class="euiTab testClass1 testClass2 emotion-euiTab"
data-test-subj="test subject string"
href="/baz/bing"
rel="noreferrer"
Expand All @@ -57,7 +57,7 @@ exports[`EuiTab props href renders anchor 1`] = `
exports[`EuiTab props isSelected is rendered 1`] = `
<button
aria-selected="true"
class="euiTab euiTab-isSelected"
class="euiTab euiTab-isSelected emotion-euiTab-euiTabSelected"
role="tab"
type="button"
>
Expand All @@ -73,7 +73,7 @@ exports[`EuiTab props onClick renders button 1`] = `
<button
aria-label="aria-label"
aria-selected="false"
class="euiTab testClass1 testClass2"
class="euiTab testClass1 testClass2 emotion-euiTab"
data-test-subj="test subject string"
role="tab"
type="button"
Expand All @@ -89,12 +89,12 @@ exports[`EuiTab props onClick renders button 1`] = `
exports[`EuiTab props prepend is rendered 1`] = `
<button
aria-selected="false"
class="euiTab"
class="euiTab emotion-euiTab"
role="tab"
type="button"
>
<span
class="euiTab__prepend"
class="euiTab__prepend css-1ttsu8e-prepend"
>
Prepend
</span>
Expand Down
12 changes: 6 additions & 6 deletions src/components/tabs/__snapshots__/tabs.test.tsx.snap
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

exports[`EuiTabs props expand is rendered 1`] = `
<div
class="euiTabs euiTabs--expand euiTabs--bottomBorder"
class="euiTabs euiTabs--medium euiTabs--expand euiTabs--bottomBorder emotion-euiTabs-tabSizeStyles-size_m-bottomBorder-expanded"
role="tablist"
>
children
Expand All @@ -11,7 +11,7 @@ exports[`EuiTabs props expand is rendered 1`] = `

exports[`EuiTabs props size l is rendered 1`] = `
<div
class="euiTabs euiTabs--large euiTabs--bottomBorder"
class="euiTabs euiTabs--large euiTabs--bottomBorder emotion-euiTabs-tabSizeStyles-size_l-bottomBorder"
role="tablist"
>
children
Expand All @@ -20,7 +20,7 @@ exports[`EuiTabs props size l is rendered 1`] = `

exports[`EuiTabs props size m is rendered 1`] = `
<div
class="euiTabs euiTabs--bottomBorder"
class="euiTabs euiTabs--medium euiTabs--bottomBorder emotion-euiTabs-tabSizeStyles-size_m-bottomBorder"
role="tablist"
>
children
Expand All @@ -29,7 +29,7 @@ exports[`EuiTabs props size m is rendered 1`] = `

exports[`EuiTabs props size s is rendered 1`] = `
<div
class="euiTabs euiTabs--small euiTabs--bottomBorder"
class="euiTabs euiTabs--small euiTabs--bottomBorder emotion-euiTabs-tabSizeStyles-size_s-bottomBorder"
role="tablist"
>
children
Expand All @@ -38,7 +38,7 @@ exports[`EuiTabs props size s is rendered 1`] = `

exports[`EuiTabs props size xl is rendered 1`] = `
<div
class="euiTabs euiTabs--xlarge euiTabs--bottomBorder"
class="euiTabs euiTabs--xlarge euiTabs--bottomBorder emotion-euiTabs-tabSizeStyles-size_xl-bottomBorder"
role="tablist"
>
children
Expand All @@ -48,7 +48,7 @@ exports[`EuiTabs props size xl is rendered 1`] = `
exports[`EuiTabs renders 1`] = `
<div
aria-label="aria-label"
class="euiTabs euiTabs--bottomBorder testClass1 testClass2"
class="euiTabs euiTabs--medium euiTabs--bottomBorder testClass1 testClass2 emotion-euiTabs-tabSizeStyles-size_m-bottomBorder"
data-test-subj="test subject string"
role="tablist"
>
Expand Down
1 change: 0 additions & 1 deletion src/components/tabs/_index.scss

This file was deleted.

110 changes: 0 additions & 110 deletions src/components/tabs/_tabs.scss

This file was deleted.

Loading