Skip to content
This repository has been archived by the owner on Oct 19, 2021. It is now read-only.

Commit

Permalink
fix(progressIndicatorSkeleton): Update html to fix styling (#2084)
Browse files Browse the repository at this point in the history
* fix: update skeleton svg for progress indicator

* chore: update html
  • Loading branch information
alisonjoseph authored and shixiedesign committed Mar 22, 2019
1 parent 68a9d40 commit 8c13a34
Showing 1 changed file with 18 additions and 7 deletions.
25 changes: 18 additions & 7 deletions src/components/ProgressIndicator/ProgressIndicator.Skeleton.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,21 +7,32 @@

import React from 'react';
import { settings } from 'carbon-components';
import { componentsX } from '../../internal/FeatureFlags';

const { prefix } = settings;

export default class ProgressIndicatorSkeleton extends React.Component {
render() {
const currentSvg = componentsX ? (
<svg>
<path d="M 7, 7 m -7, 0 a 7,7 0 1,0 14,0 a 7,7 0 1,0 -14,0" />
</svg>
) : (
<svg>
<circle cx="12" cy="12" r="12" />
<circle cx="12" cy="12" r="6" />
</svg>
);

const step = (
<li
className={`${prefix}--progress-step ${prefix}--progress-step--incomplete`}>
<svg>
<g>
<circle cx="12" cy="12" r="12" />
</g>
</svg>
<p className={`${prefix}--progress-label`} />
<span className={`${prefix}--progress-line`} />
<div
className={`${prefix}--progress-step-button ${prefix}--progress-step-button--unclickable`}>
{currentSvg}
<p className={`${prefix}--progress-label`} />
<span className={`${prefix}--progress-line`} />
</div>
</li>
);

Expand Down

0 comments on commit 8c13a34

Please sign in to comment.