Skip to content

Commit

Permalink
fix(TMC-26227): fix design system loading icon on safari browser (#5205)
Browse files Browse the repository at this point in the history
* fix(TMC-26227): fix design system loading icon on safari browser

* fix snapshots
  • Loading branch information
Gbacc authored Feb 26, 2024
1 parent 22bdfd9 commit e374251
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changeset/orange-fishes-walk.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@talend/design-system': patch
---

TMC-26227 - Fix design system loading icon on safari browser
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,7 @@ exports[`Accordion should render a11y html 1`] = `
class="theme-status__icon"
>
<svg
style="width: 100%; height: 100%;"
viewBox="0 0 16 16"
xmlns="http://www.w3.org/2000/svg"
>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ exports[`Button should render a11y html 1`] = `
<svg
aria-hidden="true"
data-test="button.loading"
style="width: 100%; height: 100%;"
viewBox="0 0 16 16"
xmlns="http://www.w3.org/2000/svg"
>
Expand Down
10 changes: 8 additions & 2 deletions packages/design-system/src/components/Loading/Loading.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,15 @@
import { HTMLAttributes, forwardRef } from 'react';
import { forwardRef, HTMLAttributes } from 'react';

export type LoadingProps = HTMLAttributes<SVGSVGElement>;

export const Loading = forwardRef<SVGSVGElement, LoadingProps>((props, ref) => (
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" ref={ref} {...props}>
<svg
xmlns="http://www.w3.org/2000/svg"
style={{ width: '100%', height: '100%' }}
viewBox="0 0 16 16"
ref={ref}
{...props}
>
<g>
<path
fill="currentColor"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
exports[`Loading should render a11y html 1`] = `
<main>
<svg
style="width: 100%; height: 100%;"
viewBox="0 0 16 16"
xmlns="http://www.w3.org/2000/svg"
>
Expand Down

0 comments on commit e374251

Please sign in to comment.