mirror of
https://github.com/GoogleChromeLabs/squoosh.git
synced 2025-11-12 08:47:31 +00:00
Add styles to save-import buttons
This commit is contained in:
@@ -197,6 +197,12 @@ export default class Options extends Component<Props, State> {
|
|||||||
}
|
}
|
||||||
title="Import saved side settings"
|
title="Import saved side settings"
|
||||||
onClick={this.onImportSideSettingsClick}
|
onClick={this.onImportSideSettingsClick}
|
||||||
|
disabled={
|
||||||
|
// Disabled if this side's settings haven't been saved
|
||||||
|
(!this.state.leftSideSettings &&
|
||||||
|
this.props.index === 0) ||
|
||||||
|
(!this.state.rightSideSettings && this.props.index === 1)
|
||||||
|
}
|
||||||
>
|
>
|
||||||
<ImportIcon />
|
<ImportIcon />
|
||||||
</button>
|
</button>
|
||||||
|
|||||||
@@ -142,6 +142,11 @@
|
|||||||
svg {
|
svg {
|
||||||
stroke: var(--header-text-color);
|
stroke: var(--header-text-color);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
&:focus {
|
||||||
|
outline: var(--header-text-color) solid 2px;
|
||||||
|
outline-offset: 0.25em;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.button-opacity {
|
.button-opacity {
|
||||||
|
|||||||
Reference in New Issue
Block a user