Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion packages/ui-components/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@node-core/ui-components",
"version": "1.5.4",
"version": "1.5.5",
"type": "module",
"exports": {
"./*": [
Expand Down
8 changes: 6 additions & 2 deletions packages/ui-components/src/Common/Banner/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,13 @@ const Banner: FC<PropsWithChildren<BannerProps>> = ({
type = 'default',
children,
}) => (
<div className={`${styles.banner} ${styles[type] || styles.default}`}>
<section
className={`${styles.banner} ${styles[type] || styles.default}`}
role="region"
aria-label="Announcement"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Instead, and this should apply to the Banner changes as well, this component should accept ...props, and forward those props to the aside. We try not to hard code values for translations

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

addressed.

>
{children}
</div>
</section>
);

export default Banner;
4 changes: 2 additions & 2 deletions packages/ui-components/src/Containers/MetaBar/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ const MetaBar: FC<MetaBarProps> = ({
);

return (
<div className={styles.wrapper}>
<aside className={styles.wrapper} aria-label="Article metadata">
<dl>
{Object.entries(items)
.filter(([, value]) => !!value)
Expand Down Expand Up @@ -65,7 +65,7 @@ const MetaBar: FC<MetaBarProps> = ({
</>
)}
</dl>
</div>
</aside>
);
};

Expand Down
Loading