Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes to scope #15133

Merged
merged 1 commit into from
Nov 30, 2014
Merged

Fixes to scope #15133

merged 1 commit into from
Nov 30, 2014

Conversation

patrickhlauke
Copy link
Member

As discussed in #15117 (comment)

  • added scope="row" to row headers (can be either <td> or <th>, AT doesn't care much)
  • removed scope="col" where it was redundant
  • simplified table examples with (to me) unnecessary
    rowspan/colspan (unless you really want complex tables, in which case we would need full-on id and headers attributes to make sure each table cell has an explicit association with the related header
    cells - overkill, in my opinion)

@XhmikosR
Copy link
Member

Can you split the # changes to a separate commit? Ideally it should be in a separate PR.

@XhmikosR
Copy link
Member

Apparently, scope cannot be used in td only in th?

@patrickhlauke
Copy link
Member Author

It used to be valid to use <td scope="row">, and indeed AT don't mind it. But new rules are new rules...

@patrickhlauke
Copy link
Member Author

Splitting the # thing out? hmm...i feel another rebase coming on...

@XhmikosR
Copy link
Member

Just split it as a separate patch for now and it should be OK. Thanks!

as discssued in
#15117 (comment)

- added ``scope="row"`` to row headers
- made sure row headers are actual ``<th>`` elements
- removed ``scope="col"`` where it was redundant
- simplified table examples with (to me) unnecessary
``rowspan``/``colspan`` (unless you really want complex tables, in which
case we would need full-on ``id`` and ``headers`` attributes to make
sure each table cell has an explicit association with the related header
cells - overkill, in my opinion)
- one table (in typography) left header-less, as it's more or less presentational (though its structure is still important, hence not adding ``role="presentation"``)
@patrickhlauke
Copy link
Member Author

Travis seems to have gotten stuck on the TWBS_TEST=sauce-js-unit test

The command "git clone --depth=10 git://github.com/twbs/bootstrap.git twbs/bootstrap" failed and exited with 128 during .

Is there any way to restart its test?

@juthilo
Copy link
Collaborator

juthilo commented Nov 14, 2014

Restarted the job.

@patrickhlauke
Copy link
Member Author

👍

@patrickhlauke
Copy link
Member Author

on a separate note, this change (actually making the row headers <th> instead of <td>) does introduce a visible difference in the tables http://getbootstrap.com/css/#tables - making the first column bold. Wonder if it's worth adding a style that explicitly sets tbody th { font-weight:normal; } ...

Though then again, sometimes authors may want their first column to appear fatter to show something's a row header. Thoughts?

@hnrch02
Copy link
Collaborator

hnrch02 commented Nov 14, 2014

/cc @mdo about ^^^

@XhmikosR XhmikosR changed the title Fixes to scope, make # announce correctly Fixes to scope Nov 17, 2014
@mdo
Copy link
Member

mdo commented Nov 30, 2014

I'm okay with the first column being bold. No need for custom styles to override it.

@mdo mdo added this to the v3.3.2 milestone Nov 30, 2014
mdo added a commit that referenced this pull request Nov 30, 2014
@mdo mdo merged commit 65f72ff into twbs:master Nov 30, 2014
@mdo
Copy link
Member

mdo commented Nov 30, 2014

Thanks, y'all!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants