Skip to content

Commit

Permalink
Fix mobile info tooltips with tabindex
Browse files Browse the repository at this point in the history
  • Loading branch information
ThePletch committed Nov 24, 2023
1 parent 260d263 commit 1dfbf40
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/views/events/_form.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,10 @@
.col-md-6
= form.form_group do
= form.check_box :secret, label: t('event.form.labels.secret'), label_class: 'btn btn-outline-dark', class: 'marked-checkbox btn-check', wrapper_class: 'd-inline-block'
.badge.rounded-pill.text-bg-primary#secret-explanation{data: {'bs-title' => t('event.form.secret_event_help'), 'bs-toggle' => 'tooltip', 'bs-placement' => 'auto'} } ?
= render "shared/info_tooltip", message: t('event.form.secret_event_help')

= form.check_box :requires_testing, label: t('event.form.labels.covid_testing'), label_class: 'btn btn-outline-dark', class: 'marked-checkbox btn-check', wrapper_class: 'd-inline-block'
.badge.rounded-pill.text-bg-primary{data: {'bs-title' => t('event.form.testing_help'), 'bs-toggle' => 'tooltip', 'bs-placement' => 'auto'} } ?
= render "shared/info_tooltip", message: t('event.form.testing_help')
.form-group
= form.hidden_field :photo_crop_y_offset
= form.file_field :photo, direct_upload: true, help: t('event.form.header_photo_help')
Expand Down
1 change: 1 addition & 0 deletions app/views/shared/_info_tooltip.html.haml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
%span.badge.rounded-pill.text-bg-primary{tabindex: 0, data: {'bs-title' => message, 'bs-toggle' => 'tooltip', 'bs-placement' => 'auto'} } ?

0 comments on commit 1dfbf40

Please sign in to comment.