Skip to content

Commit 4453cbe

Browse files
authored
COMPASS 1416: Override default blue/orange sidebar focus (#1196) (#1197)
1 parent fbbf4d6 commit 4453cbe

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

src/internal-packages/sidebar/lib/components/sidebar.jsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -209,6 +209,7 @@ class Sidebar extends React.Component {
209209
<List
210210
width={width}
211211
height={height}
212+
className="compass-sidebar-autosizer-list"
212213
overScanRowCount={OVER_SCAN_COUNT}
213214
rowCount={this.props.databases.length}
214215
rowHeight={this._calculateRowHeight.bind(this)}

src/internal-packages/sidebar/styles/index.less

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
@import './sidebar-collection.less';
1+
@import './sidebar-collection.less';
22
@import './sidebar-database.less';
33
@import './sidebar-instance-properties.less';
44

@@ -229,3 +229,8 @@
229229
opacity: 0;
230230
}
231231
}
232+
233+
// Disable the blue (macOS) or orange (RedHat/Ubuntu/Windows) focus outline
234+
.compass-sidebar-autosizer-list:focus {
235+
outline: 0;
236+
}

0 commit comments

Comments
 (0)