Skip to content

Commit dab3811

Browse files
committed
Add styling for buttons div
1 parent 0a92612 commit dab3811

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

src/assets/stylesheets/Sidebar.scss

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,12 @@
131131
scrollbar-width: thin;
132132
}
133133

134+
.sidebar__panel-buttons {
135+
display: flex;
136+
flex-direction: column;
137+
gap: $space-1;
138+
}
139+
134140
.sidebar__panel-footer {
135141
border-block-start: 1px solid $rpf-grey-150;
136142
inset-block-end: 0px;

src/components/Menus/Sidebar/SidebarPanel.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ const SidebarPanel = (props) => {
2222
<div className="sidebar__panel-header">
2323
<h2 className="sidebar__panel-heading">{heading}</h2>
2424
{buttons?.length > 0 && (
25-
<div>
25+
<div className="sidebar__panel-buttons">
2626
{buttons.map((btn, i) => (
2727
<DesignSystemButton key={i} {...btn} />
2828
))}

0 commit comments

Comments
 (0)