-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1007 from international-labour-organization/develop
Release 13 May
- Loading branch information
Showing
6 changed files
with
363 additions
and
101 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"@ilo-org/react": minor | ||
--- | ||
|
||
Aligns the Breadcrumb component with the Twig implementation which also fixes several accessibility issues. |
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
33 changes: 29 additions & 4 deletions
33
packages/react/src/components/Breadcrumb/Breadcrumb.props.ts
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 |
---|---|---|
@@ -1,13 +1,38 @@ | ||
import { LinkProps } from "../LinkList/LinkList.props"; | ||
export interface BreadcrumbItemProps { | ||
/** | ||
* Optional additional className of the BreadcrumbLink | ||
*/ | ||
className?: string; | ||
|
||
/** | ||
* Specify the label for this link | ||
*/ | ||
label: string; | ||
|
||
/** | ||
* Should the label appear as readable text on the screen or an aria-label | ||
*/ | ||
labelShown?: boolean; | ||
|
||
/** | ||
* Specify the url for this link | ||
*/ | ||
url: string; | ||
} | ||
|
||
export interface BreadcrumbProps { | ||
/** | ||
* Specify the HOME link in the Breadcrumb | ||
* An additional classname to add to the outer most element of the component | ||
*/ | ||
className?: string; | ||
|
||
/** | ||
* The accessible label to apply to the ellipsis button that appears when the Breadcrumb is collapsed | ||
*/ | ||
home: Required<LinkProps>; | ||
buttonLabel: string; | ||
|
||
/** | ||
* Specify the links to be displayed in the Breadcrumb | ||
*/ | ||
links: Required<Array<LinkProps>>; | ||
links: BreadcrumbItemProps[]; | ||
} |
Oops, something went wrong.