Skip to content

Commit

Permalink
improve accessibility of new question route (#8028)
Browse files Browse the repository at this point in the history
  • Loading branch information
Tlazypanda authored Jun 23, 2020
1 parent ae9594c commit 5f02bd8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/views/editor/questionRich.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
<h2>Ask a question of the PublicLab community</h2>
<br />
<div>
<input class="form-control form-control-lg" type="text" placeholder="What's your question? Be specific." value="<%= if @node then @node.title else params[:title] end %>" />
<input aria-label="Enter question" class="form-control form-control-lg" type="text" placeholder="What's your question? Be specific." value="<%= if @node then @node.title else params[:title] end %>" />
</div>
</div>

Expand All @@ -58,7 +58,7 @@
<div class="ple-module-content">

<div>
<textarea id="text-input" class="ple-textarea form-control" placeholder="&nbsp;&nbsp;&nbsp;&nbsp;Share some background information. You may drag in an image to illustrate your question."><% if @node && @node.latest && @node.latest.body_rich %><%= @node.latest.body %><% else %><%= params[:body] %><% end %></textarea>
<textarea aria-label="Enter background information for question" id="text-input" class="ple-textarea form-control" placeholder="&nbsp;&nbsp;&nbsp;&nbsp;Share some background information. You may drag in an image to illustrate your question."><% if @node && @node.latest && @node.latest.body_rich %><%= @node.latest.body %><% else %><%= params[:body] %><% end %></textarea>
</div>

<div style="color:#aaa;">
Expand All @@ -82,7 +82,7 @@
<div class="ple-module-tags ple-module">

<div class="ple-module-content">
<input class="form-control form-control-lg" type="text" placeholder="Type some keywords related to your question (i.e. water, lead)" value="<% if params[:tags] || (@node && @node.tagnames) %><%= params[:tags] || @node.tagnames.join(',') %><% end %>" />
<input aria-label="Enter related tags" class="form-control form-control-lg" type="text" placeholder="Type some keywords related to your question (i.e. water, lead)" value="<% if params[:tags] || (@node && @node.tagnames) %><%= params[:tags] || @node.tagnames.join(',') %><% end %>" />
</div>

</div>
Expand Down

0 comments on commit 5f02bd8

Please sign in to comment.