-
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.
* Update segment control and layer toggles for ADA accessibility * nits * class table spacing nit * revert classtable change * Updates color contrast for light text, vertically justifies infor status * Layer toggle spacing nit * Adds aria labels, simplifies storybook library stories, adds ErrorStatus component, fixes z-index of dropdown * Present simplebutton as single component, adds aria-labels and roles, reformats to eslint standards, * Adjust status component formatting * Update status formatting
- Loading branch information
Showing
40 changed files
with
465 additions
and
371 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 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 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
5 changes: 3 additions & 2 deletions
5
packages/geoprocessing/src/components/DataDownload.stories.tsx
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
18 changes: 11 additions & 7 deletions
18
packages/geoprocessing/src/components/Dropdown.stories.tsx
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
19 changes: 19 additions & 0 deletions
19
packages/geoprocessing/src/components/ErrorStatus.stories.tsx
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,19 @@ | ||
import React from "react"; | ||
import Card from "./Card.js"; | ||
import { ErrorStatus } from "./ErrorStatus.js"; | ||
import ReportDecorator from "./storybook/ReportDecorator.js"; | ||
|
||
export default { | ||
component: ErrorStatus, | ||
title: "Components/ErrorStatus", | ||
decorators: [ReportDecorator], | ||
}; | ||
|
||
export const errorStatus = () => ( | ||
<Card> | ||
<ErrorStatus | ||
size={32} | ||
msg={<>Your sketch falls outside of project boundaries</>} | ||
/> | ||
</Card> | ||
); |
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,29 @@ | ||
import React from "react"; | ||
import { ExclamationCircleFill } from "@styled-icons/bootstrap"; | ||
|
||
export interface ErrorStatusProps { | ||
msg: JSX.Element; | ||
size?: number; | ||
style?: React.HTMLAttributes<HTMLElement>["style"]; | ||
} | ||
|
||
export const ErrorStatus: React.FunctionComponent<ErrorStatusProps> = ({ | ||
msg, | ||
size = 36, | ||
style = {}, | ||
}) => { | ||
return ( | ||
<div | ||
style={{ display: "flex", alignItems: "center" }} | ||
aria-label="Error" | ||
role="status" | ||
> | ||
<ExclamationCircleFill | ||
size={size} | ||
style={{ color: "#ea4848", paddingRight: 10, flexShrink: 0, ...style }} | ||
aria-label="Error icon" | ||
/> | ||
<div aria-label="Error message">{msg}</div> | ||
</div> | ||
); | ||
}; |
Oops, something went wrong.