Skip to content

Commit

Permalink
Fix styling of create course form (#1905)
Browse files Browse the repository at this point in the history
* Increase specificity of selector

* Change text_field_tag -> email_field_tag
  • Loading branch information
damianhxy authored May 21, 2023
1 parent 4cac61e commit b905d62
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions app/assets/stylesheets/style.css.scss
Original file line number Diff line number Diff line change
Expand Up @@ -925,8 +925,8 @@ input[type="password"]:focus {
}

// To remove line for file-field
input[type="text"].validate,
input[type="text"].validate.valid, {
.file-field input[type="text"].validate,
.file-field input[type="text"].validate.valid, {
border-bottom: none;
box-shadow: none;
}
Expand Down
2 changes: 1 addition & 1 deletion app/views/courses/new.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

<div class="input-field">
<label class="control-label" for="instructor_email">Instructor Email</label>
<%= text_field_tag :instructor_email, nil, class: "validate", placeholder: "", required: true %>
<%= email_field_tag :instructor_email, nil, class: "validate", placeholder: "", required: true %>
<p class="help-block">Email of an Instructor, they will set up the course from here!</p>
</div>

Expand Down

0 comments on commit b905d62

Please sign in to comment.