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 Oct 19, 2023
1 parent 8436b31 commit 396f931
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 @@ -277,7 +277,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 @@ -22,7 +22,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 @@ -124,7 +124,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 @@ -12,7 +12,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 @@ -21,7 +21,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 396f931

Please sign in to comment.