Skip to content

Commit

Permalink
fix(grapher): style leak on chart revision page
Browse files Browse the repository at this point in the history
  • Loading branch information
sophiamersmann committed Nov 2, 2023
1 parent f3d12b0 commit e3ec641
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,7 @@ export class CaptionedChart extends React.Component<CaptionedChartProps> {
<ContentSwitchers manager={this.manager} />
)}
</div>
<div className="controls">
<div className="chart-controls">
<EntitySelectionToggle manager={this.manager} />
<SettingsMenu
manager={this.manager}
Expand Down
4 changes: 2 additions & 2 deletions packages/@ourworldindata/grapher/src/controls/Controls.scss
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ $indent: 15px;
$control-row-height: 32px;

// Buttons in the main controls row of the grapher view
nav.controlsRow .controls {
nav.controlsRow .chart-controls {
display: flex;
gap: 8px;

Expand Down Expand Up @@ -120,7 +120,7 @@ nav.controlsRow .controls {
//
@at-root {
.AdminApp {
nav.controlsRow .controls button.menu-toggle label {
nav.controlsRow .chart-controls button.menu-toggle label {
margin: 0;
}
.settings-menu-contents section {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ $lato: $sans-serif-font-stack;

@at-root {
// placed either directly in controls row or in settings menu
.controlsRow .controls,
.controlsRow .chart-controls,
.settings-menu-contents {
// on/off switch with label written to the right
.labeled-switch {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ $lato: $sans-serif-font-stack;
$indent: 15px;
$control-row-height: 32px;

nav.controlsRow .controls .settings-menu {
nav.controlsRow .chart-controls .settings-menu {
// the pop-up version of the settings menu
.settings-menu-controls {
position: absolute;
Expand Down

0 comments on commit e3ec641

Please sign in to comment.