Skip to content

Commit

Permalink
fix(Skeleton): Missing properties in PropTypes (#1381)
Browse files Browse the repository at this point in the history
  • Loading branch information
langz committed Apr 5, 2022
1 parent 62e72cd commit 9abc790
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
10 changes: 10 additions & 0 deletions packages/dnb-eufemia/src/components/skeleton/Skeleton.d.ts
Expand Up @@ -64,6 +64,16 @@ export interface SkeletonProps extends React.HTMLProps<HTMLElement> {
*/
figure?: SkeletonFigure;

/**
* Is used for screen reader text translation, defined in the translation files. You can set a custom text if needed.
*/
aria_busy?: string;

/**
* Is used for screen reader text translation, defined in the translation files. You can set a custom text if needed.
*/
aria_ready?: string;

/**
* Set any HTML element type you have to use. A couple of aria attributes will be set on this element while active. Defaults to `div`
*/
Expand Down
2 changes: 2 additions & 0 deletions packages/dnb-eufemia/src/components/skeleton/Skeleton.js
Expand Up @@ -35,6 +35,8 @@ export default class Skeleton extends React.PureComponent {
PropTypes.func,
PropTypes.node,
]),
aria_busy: PropTypes.string,
aria_ready: PropTypes.string,
element: PropTypes.node,

...spacingPropTypes,
Expand Down

0 comments on commit 9abc790

Please sign in to comment.