Skip to content

Commit a5fd02b

Browse files
authored
add new styles for disabled buttons in newflow.scss (#1669)
1 parent 9260c9e commit a5fd02b

File tree

2 files changed

+7
-11
lines changed

2 files changed

+7
-11
lines changed

app/assets/stylesheets/newflow.scss

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1084,3 +1084,10 @@ $very-narrow: 37rem * $scale-factor;
10841084
}
10851085

10861086
.grecaptcha-badge { visibility: hidden; }
1087+
1088+
.ui-state-disabled,
1089+
.ui-button-disabled {
1090+
opacity: 0.5;
1091+
pointer-events: none;
1092+
cursor: not-allowed;
1093+
}

app/views/newflow/social_auth/confirm_social_info_form.html.erb

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -129,14 +129,3 @@
129129
<script type="text/javascript">
130130
NewflowUi.enableOnChecked('#confirm_social_info_submit_button', '#signup_terms_accepted');
131131
</script>
132-
133-
<%# TODO: move this to some CSS file %>
134-
<style>
135-
.ui-state-disabled, .ui-button-disabled {
136-
opacity: 0.75;
137-
}
138-
139-
.ui-state-disabled:hover, .ui-button-disabled:hover {
140-
cursor: not-allowed;
141-
}
142-
</style>

0 commit comments

Comments
 (0)