-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Breaking: Convert indicator to jsx, add outer container (fixes 230)
- Loading branch information
1 parent
f764480
commit c480f90
Showing
4 changed files
with
50 additions
and
40 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 was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,24 @@ | ||
import React from 'react'; | ||
import { compile } from 'core/js/reactHelpers'; | ||
|
||
export default function PageLevelProgressIndicator (props) { | ||
const { | ||
ariaLabel | ||
} = props; | ||
|
||
return ( | ||
<span className='pagelevelprogress__indicator'> | ||
<span className="pagelevelprogress__indicator-inner"> | ||
|
||
<span className="pagelevelprogress__indicator-bar"></span> | ||
|
||
{ariaLabel && | ||
<span className="aria-label"> | ||
{compile(ariaLabel)} | ||
</span> | ||
} | ||
|
||
</span> | ||
</span> | ||
); | ||
}; |