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] Convert the rest of the Loading components #5845

Merged
merged 19 commits into from
Apr 28, 2022
Merged
Show file tree
Hide file tree
Changes from 14 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
5 changes: 4 additions & 1 deletion src-docs/src/views/loading/loading_example.js
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,10 @@ export const LoadingExample = {
),
props: { EuiLoadingLogo },
demo: <LoadingLogo />,
snippet: '<EuiLoadingLogo size="m" />',
snippet: [
'<EuiLoadingLogo size="m" />',
'<EuiLoadingLogo logo="logoSecurity" />',
],
playground: loadingLogoConfig,
},
{
Expand Down
9 changes: 0 additions & 9 deletions src-docs/src/views/theme/_json/eui_theme_dark.json
Original file line number Diff line number Diff line change
Expand Up @@ -229,15 +229,6 @@
"medium": "14px",
"large": "22px"
},
"euiGradientStartStop": "#2e3039",
"euiGradientMiddle": "#282a31",
"euiLoadingSpinnerSizes": {
"small": "12px",
"medium": "16px",
"large": "24px",
"xLarge": "32px",
"xxLarge": "40px"
},
"euiMarkdownEditorMinHeight": "150px",
"euiPopoverArrowSize": "12px",
"euiPopoverTranslateDistance": "8px",
Expand Down
9 changes: 0 additions & 9 deletions src-docs/src/views/theme/_json/eui_theme_light.json
Original file line number Diff line number Diff line change
Expand Up @@ -229,15 +229,6 @@
"medium": "14px",
"large": "22px"
},
"euiGradientStartStop": "#f0f2f6",
"euiGradientMiddle": "#f6f8fa",
"euiLoadingSpinnerSizes": {
"small": "12px",
"medium": "16px",
"large": "24px",
"xLarge": "32px",
"xxLarge": "40px"
},
"euiMarkdownEditorMinHeight": "150px",
"euiPopoverArrowSize": "12px",
"euiPopoverTranslateDistance": "8px",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1025,7 +1025,9 @@ exports[`EuiAccordion props isLoadingMessage is rendered 1`] = `
class="euiAccordion__children-isLoading"
>
<span
class="euiLoadingSpinner euiLoadingSpinner--medium euiAccordion__spinner"
aria-label="Loading"
class="euiLoadingSpinner euiAccordion__spinner css-155ohbx-euiLoadingSpinner-m"
role="progressbar"
/>
<span>
Please wait
Expand Down
4 changes: 3 additions & 1 deletion src/components/button/__snapshots__/button.test.tsx.snap
Original file line number Diff line number Diff line change
Expand Up @@ -312,7 +312,9 @@ exports[`EuiButton props isLoading is rendered 1`] = `
class="euiButtonContent euiButton__content"
>
<span
class="euiLoadingSpinner euiLoadingSpinner--medium euiButtonContent__spinner"
aria-label="Loading"
class="euiLoadingSpinner euiButtonContent__spinner css-155ohbx-euiLoadingSpinner-m"
role="progressbar"
/>
<span
class="euiButton__text"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,9 @@ exports[`EuiButtonContent props isLoading is rendered 1`] = `
class="euiButtonContent"
>
<span
class="euiLoadingSpinner euiLoadingSpinner--medium euiButtonContent__spinner"
aria-label="Loading"
class="euiLoadingSpinner euiButtonContent__spinner css-155ohbx-euiLoadingSpinner-m"
role="progressbar"
/>
<span />
</span>
Expand All @@ -62,7 +64,9 @@ exports[`EuiButtonContent props isLoading replaces iconType with spinner 1`] = `
class="euiButtonContent"
>
<span
class="euiLoadingSpinner euiLoadingSpinner--medium euiButtonContent__spinner"
aria-label="Loading"
class="euiLoadingSpinner euiButtonContent__spinner css-155ohbx-euiLoadingSpinner-m"
role="progressbar"
/>
<span />
</span>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -312,7 +312,9 @@ exports[`EuiButtonEmpty props isLoading is rendered 1`] = `
class="euiButtonContent euiButtonEmpty__content"
>
<span
class="euiLoadingSpinner euiLoadingSpinner--medium euiButtonContent__spinner"
aria-label="Loading"
class="euiLoadingSpinner euiButtonContent__spinner css-155ohbx-euiLoadingSpinner-m"
role="progressbar"
/>
<span
class="euiButtonEmpty__text"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,9 @@ exports[`EuiButtonIcon props isLoading is rendered 1`] = `
type="button"
>
<span
class="euiLoadingSpinner euiLoadingSpinner--medium"
aria-label="Loading"
class="euiLoadingSpinner css-155ohbx-euiLoadingSpinner-m"
role="progressbar"
/>
</button>
`;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,9 @@ exports[`EuiFacetButton props isLoading is rendered 1`] = `
Content
</span>
<span
class="euiLoadingSpinner euiLoadingSpinner--medium euiFacetButton__spinner"
aria-label="Loading"
class="euiLoadingSpinner euiFacetButton__spinner css-155ohbx-euiLoadingSpinner-m"
role="progressbar"
/>
</span>
</button>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,9 @@ exports[`EuiFieldPassword props isLoading is rendered 1`] = `
class="euiFormControlLayoutIcons euiFormControlLayoutIcons--right"
>
<span
class="euiLoadingSpinner euiLoadingSpinner--medium"
aria-label="Loading"
class="euiLoadingSpinner css-155ohbx-euiLoadingSpinner-m"
role="progressbar"
/>
</div>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,9 @@ exports[`EuiFormControlLayout props compressed renders small-sized icon, clear b
/>
</button>
<span
class="euiLoadingSpinner euiLoadingSpinner--small"
aria-label="Loading"
class="euiLoadingSpinner css-1y37fq2-euiLoadingSpinner-s"
role="progressbar"
/>
</div>
</div>
Expand Down Expand Up @@ -242,7 +244,9 @@ exports[`EuiFormControlLayout props isLoading is rendered 1`] = `
class="euiFormControlLayoutIcons euiFormControlLayoutIcons--right"
>
<span
class="euiLoadingSpinner euiLoadingSpinner--medium"
aria-label="Loading"
class="euiLoadingSpinner css-155ohbx-euiLoadingSpinner-m"
role="progressbar"
/>
</div>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -546,7 +546,9 @@ exports[`EuiDualRange props loading should display when showInput="inputWithPopo
class="euiFormControlLayoutIcons euiFormControlLayoutIcons--right"
>
<span
class="euiLoadingSpinner euiLoadingSpinner--medium"
aria-label="Loading"
class="euiLoadingSpinner css-155ohbx-euiLoadingSpinner-m"
role="progressbar"
/>
</div>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -342,7 +342,9 @@ exports[`EuiRange props loading should display when showInput="inputWithPopover"
class="euiFormControlLayoutIcons euiFormControlLayoutIcons--right"
>
<span
class="euiLoadingSpinner euiLoadingSpinner--medium"
aria-label="Loading"
class="euiLoadingSpinner css-155ohbx-euiLoadingSpinner-m"
role="progressbar"
/>
</div>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,9 @@ Array [
class="euiFormControlLayoutIcons euiFormControlLayoutIcons--right"
>
<span
class="euiLoadingSpinner euiLoadingSpinner--medium"
aria-label="Loading"
class="euiLoadingSpinner css-155ohbx-euiLoadingSpinner-m"
role="progressbar"
/>
<span
class="euiFormControlLayoutCustomIcon"
Expand Down
1 change: 0 additions & 1 deletion src/components/index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@
@import 'key_pad_menu/index';
@import 'link/index';
@import 'list_group/index';
@import 'loading/index';
@import 'markdown_editor/index';
@import 'modal/index';
@import 'notification/index';
Expand Down
Loading