Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LPS-113189 Hiding sidebar title when a field is selected #89650

Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
Expand Up @@ -49,3 +49,13 @@
margin: 2px 0;
}
}

.display-settings.data-layout-builder-sidebar {
.sidebar-header {
padding-top: 0;

.component-title {
display: none;
}
}
}
Expand Up @@ -13,6 +13,7 @@
*/

import ClayForm from '@clayui/form';
import classNames from 'classnames';
import React, {useContext, useState} from 'react';

import AppContext from '../../../AppContext.es';
Expand All @@ -32,7 +33,9 @@ export default function ({title}) {
const displaySettings = hasFocusedCustomObjectField || hasFocusedField;

return (
<Sidebar>
<Sidebar
className={classNames({['display-settings']: displaySettings})}
>
<Sidebar.Header>
<Sidebar.Title title={title} />

Expand Down