Skip to content

Commit

Permalink
Make "choose one" link in comment forms appear underlined (#6401)
Browse files Browse the repository at this point in the history
* Underline "choose one" link

Make "choose one" link in comment forms appear underlined #6399

* Add a CSS class to underline text

* Add !important to underline CSS class
  • Loading branch information
crtlf authored and cesswairimu committed Nov 8, 2019
1 parent 161f007 commit defce80
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions app/assets/stylesheets/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,10 @@ a .fa-white,
display:none;
}

.text-underline {
text-decoration: underline !important;
}

#pl_pad {
width:300%;
}
Expand Down
2 changes: 1 addition & 1 deletion app/views/comments/_form.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
<!-- http://stackoverflow.com/questions/11235206/twitter-bootstrap-form-file-element-upload-button -->
<label id="input_label" class="" for="fileinput">
<input id="fileinput" type="file" name="image[photo]" style="display:none;" />
<a onClick="handleClick()" class="d-none d-md-inline">choose one</a>
<a onClick="handleClick()" class="d-none d-md-inline text-underline">choose one</a>
<span class="d-md-none">
<i class="fa fa-upload"></i>
<a><%= translation('comments._form.upload_image') %></a>
Expand Down

0 comments on commit defce80

Please sign in to comment.