diff --git a/app/assets/stylesheets/dossiers_table.scss b/app/assets/stylesheets/dossiers_table.scss index 9175babc7..dfcacfecd 100644 --- a/app/assets/stylesheets/dossiers_table.scss +++ b/app/assets/stylesheets/dossiers_table.scss @@ -51,7 +51,7 @@ } .number-col { - width: 110px; + white-space: nowrap; } .folder-col { diff --git a/app/assets/stylesheets/table.scss b/app/assets/stylesheets/table.scss index 6482b807b..6c955a29e 100644 --- a/app/assets/stylesheets/table.scss +++ b/app/assets/stylesheets/table.scss @@ -9,7 +9,8 @@ border-top: 1px solid $border-grey; } - td { + td, + th[scope="row"] { @include vertical-padding($default-spacer); vertical-align: middle; } diff --git a/app/views/users/dossiers/_dossiers_list.html.haml b/app/views/users/dossiers/_dossiers_list.html.haml index 3d043ac56..68e6a6fec 100644 --- a/app/views/users/dossiers/_dossiers_list.html.haml +++ b/app/views/users/dossiers/_dossiers_list.html.haml @@ -2,17 +2,17 @@ %table.table.dossiers-table.hoverable %thead %tr - %th.number-col= t('views.users.dossiers.dossiers_list.n_dossier') - %th= t('views.users.dossiers.dossiers_list.procedure') + %th.number-col{ scope: :col }= t('views.users.dossiers.dossiers_list.n_dossier') + %th{ scope: :col }= t('views.users.dossiers.dossiers_list.procedure') - if dossiers.present? - %th= t('views.users.dossiers.dossiers_list.requester') - %th.status-col= t('views.users.dossiers.dossiers_list.status') - %th.updated-at-col= t('views.users.dossiers.dossiers_list.updated') - %th.sr-only= t('views.users.dossiers.dossiers_list.actions') + %th{ scope: :col }= t('views.users.dossiers.dossiers_list.requester') + %th.status-col{ scope: :col }= t('views.users.dossiers.dossiers_list.status') + %th.updated-at-col{ scope: :col }= t('views.users.dossiers.dossiers_list.updated') + %th.sr-only{ scope: :col }= t('views.users.dossiers.dossiers_list.actions') %tbody - dossiers.each do |dossier| %tr{ data: { 'dossier-id': dossier.id } } - %td.number-col + %th.number-col{ scope: :row } = link_to(url_for_dossier(dossier), class: 'cell-link', tabindex: -1) do %span.icon.folder = dossier.id