Skip to content

Commit

Permalink
Add header title to list view sidebar
Browse files Browse the repository at this point in the history
  • Loading branch information
jeryj committed May 10, 2024
1 parent 9b77e39 commit c3f69dd
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 5 deletions.
5 changes: 5 additions & 0 deletions packages/editor/src/components/list-view-sidebar/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -130,13 +130,18 @@ export default function ListViewSidebar() {
defaultTabId="list-view"
>
<div className="editor-list-view-sidebar__header">
<span className="editor-list-view-sidebar__header-title">
{ __( 'Document Overview' ) }
</span>
<Button
className="editor-list-view-sidebar__close-button"
icon={ closeSmall }
label={ __( 'Close' ) }
onClick={ closeListView }
size="small"
/>
</div>
<div className="editor-list-view-sidebar__tabs">
<Tabs.TabList
className="editor-list-view-sidebar__tabs-tablist"
ref={ tabsRef }
Expand Down
26 changes: 21 additions & 5 deletions packages/editor/src/components/list-view-sidebar/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,29 @@
}
.editor-list-view-sidebar__header {
display: flex;
border-bottom: $border-width solid $gray-300;
justify-content: space-between;
padding: $grid-unit-05 $grid-unit-05 0 $grid-unit-20;
background-color: $gray-100;
}

.editor-list-view-sidebar__header-title {
font-size: 12px;
font-weight: 500;
color: $gray-600;
text-transform: uppercase;
position: relative;
top: $grid-unit-10;
}

.editor-list-view-sidebar__close-button {
background: $white;
order: 1;
align-self: center;
margin-right: $grid-unit-15;
background: transparent;
color: $gray-600;
}

.editor-list-view-sidebar__tabs {
display: flex;
background-color: $gray-100;
border-bottom: $border-width solid $gray-300;
}
}

Expand Down

0 comments on commit c3f69dd

Please sign in to comment.