Merge pull request #818 from opf/fix/accessibility_layout_table_markup_in_work_package_show_view_2263

[FIX] Accessibility layout table markup in work package show view 2263
pull/838/head
Till Breuer 11 years ago
commit 110e795c47
  1. 4
      app/assets/stylesheets/work_packages.css
  2. 4
      app/helpers/work_packages_helper.rb
  3. 1
      doc/CHANGELOG.md
  4. 4
      features/step_definitions/work_package_steps.rb
  5. BIN
      features/work_packages/.destroy.feature.swp

@ -30,3 +30,7 @@ See doc/COPYRIGHT.rdoc for more details.
#work-packages-query-selection .select2-container {
margin-left: 5px;
}
.issue .attributes td.work_package_attribute_header {
font-weight: bold;
}

@ -352,7 +352,9 @@ module WorkPackagesHelper
def work_package_show_table_row(attribute, klass = nil, &block)
klass = attribute.to_s.dasherize if klass.nil?
content = content_tag(:th, :class => klass) { "#{WorkPackage.human_attribute_name(attribute)}:" }
content = content_tag(:td, :class => [:work_package_attribute_header, klass]) do
"#{WorkPackage.human_attribute_name(attribute)}:"
end
content << content_tag(:td, :class => klass, &block)
WorkPackageAttribute.new(attribute, content)

@ -38,6 +38,7 @@ See doc/COPYRIGHT.rdoc for more details.
* `#2240` [Accessibility] correctly label document language of menu items
* `#2250` [Accessibility] activity icon labels
* `#2260` [Accessibility] no-existent alt-text for collapse/expand functionality in grouped work-package list
* `#2263` [Accessibility] Correct markup for tables
* `#2734` [API] Access-Key not supported for all controllers
* `#2366` [Timelines] Add support for user deletion to timelines
* `#3120` Implement a test suite the spikes can be developed against

@ -113,8 +113,8 @@ Then /^the work package should be shown with the following values:$/ do |table|
end
table_attributes.each do |key, value|
label = first('th', :text => key)
should have_css("td.#{label[:class]}", :text => value)
label = find('td.work_package_attribute_header', :text => key)
should have_css("td.#{label[:class].split(' ').last}", :text => value)
end
if table.rows_hash["Type"] || table.rows_hash["Subject"]

Loading…
Cancel
Save