ElementsSidebar: Fix hover color

This commit is contained in:
Siklos 2022-08-01 11:45:41 +02:00
parent e5012256de
commit b2a020730c

View file

@ -49,7 +49,7 @@ export class ElementsSidebar extends React.Component<IElementsSidebarProps> {
const text = '\t\t'.repeat(depth) + key; const text = '\t\t'.repeat(depth) + key;
const selectedClass: string = this.props.SelectedContainer !== null && const selectedClass: string = this.props.SelectedContainer !== null &&
this.props.SelectedContainer.props.id === container.props.id this.props.SelectedContainer.props.id === container.props.id
? 'bg-blue-500 hover:bg-slate-500' ? 'bg-blue-500 hover:bg-blue-600'
: 'bg-slate-400 hover:bg-slate-600'; : 'bg-slate-400 hover:bg-slate-600';
containerRows.push( containerRows.push(
<button className={`sidebar-row whitespace-pre text-left transition-all ${selectedClass}`} key={key} onClick={() => this.props.selectContainer(container)}> <button className={`sidebar-row whitespace-pre text-left transition-all ${selectedClass}`} key={key} onClick={() => this.props.selectContainer(container)}>