Skip to content

Commit d480b8a

Browse files
committed
Fix force import button warning style
1 parent 8de87b3 commit d480b8a

2 files changed

Lines changed: 16 additions & 1 deletion

File tree

src/components/CollectionImportButton.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,9 @@ const CollectionImportButton: React.FC<CollectionImportButtonProps> = ({
8181
? "Queuing..."
8282
: "Queue Import";
8383

84-
const buttonClass = force ? "btn btn-warning" : "btn btn-default";
84+
const buttonClass = force
85+
? "btn btn-default collection-import-button force"
86+
: "btn btn-default collection-import-button";
8587

8688
const panelContent = (
8789
<div className="collection-import">

src/stylesheets/collection.scss

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,19 @@
1111
}
1212

1313
.collection-import {
14+
.collection-import-button.force {
15+
background: darken($yellow, 8%);
16+
border-color: darken($yellow, 20%);
17+
color: $dark-gray;
18+
19+
&:hover,
20+
&:focus {
21+
background: $yellow;
22+
border-color: darken($yellow, 25%);
23+
color: $dark-gray;
24+
}
25+
}
26+
1427
.collection-import-details-toggle {
1528
background: none;
1629
border: none;

0 commit comments

Comments
 (0)