Skip to content

Commit 0f39bc4

Browse files
authored
Adjust share CTA sizing and disabled state (anomalyco#916)
Co-authored-by: jcllobet <[email protected]>
1 parent 26c9871 commit 0f39bc4

1 file changed

Lines changed: 20 additions & 4 deletions

File tree

‎services/openwork-share/styles/globals.css‎

Lines changed: 20 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -969,7 +969,7 @@ a {
969969
}
970970

971971
.share-upload-row-actions {
972-
grid-template-columns: minmax(180px, 220px) auto;
972+
grid-template-columns: 1fr 1fr;
973973
}
974974

975975
.share-upload-actions {
@@ -1022,7 +1022,24 @@ a {
10221022

10231023
.share-home-generate-button {
10241024
width: 100%;
1025-
min-width: 240px;
1025+
min-width: 0;
1026+
}
1027+
1028+
.share-home-generate-button:disabled {
1029+
cursor: not-allowed;
1030+
pointer-events: none;
1031+
transform: none;
1032+
background: #ffffff;
1033+
border: 1px solid rgba(148, 163, 184, 0.4);
1034+
color: var(--ow-muted);
1035+
opacity: 1;
1036+
box-shadow: none;
1037+
}
1038+
1039+
.share-home-generate-button:disabled:hover {
1040+
background: #ffffff;
1041+
transform: none;
1042+
box-shadow: none;
10261043
}
10271044

10281045
.share-upload-supporting-row {
@@ -1819,11 +1836,10 @@ button.included-item {
18191836
}
18201837

18211838
.share-upload-row-actions {
1822-
grid-template-columns: minmax(180px, 220px) 1fr;
1839+
grid-template-columns: 1fr 1fr;
18231840
}
18241841

18251842
.share-home-generate-button {
1826-
grid-column: 1 / -1;
18271843
width: 100%;
18281844
}
18291845

0 commit comments

Comments
 (0)