0
0
mirror of https://github.com/twbs/bootstrap.git synced 2024-12-10 22:24:19 +01:00
Commit Graph

166 Commits

Author SHA1 Message Date
Chris Rebert
b3a23fa33a fix styling of alert-dismissable example 2013-08-27 11:15:14 -07:00
Mark Otto
2f2ce15e58 Fixes #10082: document .navbar-form
* Adds new section to navbar docs with example
* Updates example classes for all collapsing navbars so their numbers
increment as you scroll
2013-08-27 08:34:17 -07:00
Mark Otto
1f16e21e75 Merge pull request #10209 from clbn/master
Fixes #10207: alert-dismissable example requires contextual class
2013-08-27 07:43:17 -07:00
Tom Pietschker
77bee02c85 add role="button" 2013-08-27 09:46:10 -04:00
Tom Pietschker
d1f60671c7 per the docs - use <a> instead of <button> 2013-08-27 09:45:38 -04:00
Alex Olshansky
f8dc1858b0 Fixes #10207: alert-dismissable example requires contextual class 2013-08-27 05:20:14 -07:00
Mark Otto
dd9980e8c9 Fixes #10137: correct classes on thumbnails 2013-08-26 17:47:56 -07:00
Mark Otto
4d23aa4ef5 Address #9873 and fix #9774
* Update styling of justified nav links to be more mobile friendly
(with all four rounded corners and some margin between items)
* Add note to docs to callout bogus WebKit rendering on component and
example
2013-08-26 17:37:52 -07:00
Kevin Suttle
dd9c15273c Add even more role="button" attributes
Missed the <a class="btw" in my regex search
2013-08-24 16:31:15 -04:00
Kevin Suttle
0add7700ad Add role="button" to <a> buttons
These should really be <button> elements, but until that gets squared away, this will suffice.
2013-08-24 16:29:35 -04:00
Mark Otto
ab3e1762d4 turn some buttons into <button> elements where possible 2013-08-24 11:46:24 -07:00
Chris Rebert
1a1394dc62 Merge pull request #9931 from realityking/toolbar
Add role="toolbar" to elements with .btn-toolbar.
2013-08-23 16:19:30 -07:00
jody tate
e4bf27b223 remove .btn-group
Removing this class--it's not used in the example and using it causes "bad things to happen." 

http://jsfiddle.net/josephtate/Jn6H4/
2013-08-21 13:31:17 -07:00
Rouven Weßling
a9d1f901c5 Add role="toolbar" to elements with .btn-toolbar. 2013-08-20 15:07:43 +02:00
Chris Lamb
3515964578 Correct "Aligninment" -> "Alignment" typo.
Signed-off-by: Chris Lamb <chris@chris-lamb.co.uk>
2013-08-20 11:18:23 +01:00
Mark Otto
72fb2caf00 Update thumbnails col classes 2013-08-19 09:10:19 -07:00
Yulong Liu
e82e8321f2 fix typo 2013-08-19 23:02:03 +08:00
Mark Otto
08d19af710 Fix remainder of panel default examples and reorder nav links 2013-08-19 00:43:22 -07:00
Mark Otto
2a3018a9a6 Fix broken tables in panel groups example 2013-08-19 00:42:12 -07:00
Mark Otto
20fed789f9 More legible examples for progress bars 2013-08-19 00:41:03 -07:00
Mark Otto
38009ec8ef Double quotes not single quotes 2013-08-19 00:39:00 -07:00
Mark Otto
17c1388f23 Consistent alert link examples (adds warning and reorders) 2013-08-19 00:38:20 -07:00
Mark Otto
5b2e3dd769 Doh! Really undo that navbar thing 2013-08-19 00:33:27 -07:00
Mark Otto
515d7caa94 remove redundant docs section 2013-08-19 00:31:38 -07:00
Mark Otto
a9378a9267 Merge branch '3.0.0-wip' into bs3_homepage
Conflicts:
	customize.html
	dist/css/bootstrap.min.css
2013-08-18 20:15:45 -07:00
Mark Otto
a1db2d7a5e Merge branch '3.0.0-wip' into bs3_panel_base_class
Conflicts:
	dist/css/bootstrap-theme.min.css
	dist/css/bootstrap.min.css
2013-08-18 20:11:04 -07:00
Mark Otto
108d10a920 Refactor alerts to have a base class, but no default class, thus requiring a modifier class at all times 2013-08-18 19:50:53 -07:00
Mark Otto
bab51d27ac Refactor panels to have a base class for improved flexibility when customizing (and no overriding to start, too) 2013-08-18 19:40:57 -07:00
Mark Otto
841dac58ca move glyphicons styles to docs css 2013-08-18 19:04:30 -07:00
Mark Otto
c240460f0b Merge branch '3.0.0-wip' into glyphicons-LESS-fixes
Conflicts:
	dist/css/bootstrap.min.css
2013-08-18 15:47:29 -07:00
Mark Otto
7b4e2a9a4a Merge branch '3.0.0-navbar-default' of https://github.com/juthilo/bootstrap-wip into juthilo-3.0.0-navbar-default
Conflicts:
	dist/css/bootstrap.min.css
2013-08-18 15:43:27 -07:00
Chris Rebert
fa7cc6cafd account for 9fa0a5d127 in the docs 2013-08-18 15:37:07 -07:00
Chris Rebert
c338f2782d regenerate Glyphicons listing/demo section of docs 2013-08-18 15:36:24 -07:00
Julian Thilo
abca00870f Add a .navbar-default class for default colors
* Extract color styles from .navbar { } and put them into
.navbar-default { }
* Change variable names
* Change the docs accordingly (i.e., add the .navbar-default class to
all default navbars)
* Change customizer accordingly
2013-08-18 23:05:56 +02:00
Chris Rebert
1b49b42683 fix wrong closing tag on Glyphicons-in-buttons examples 2013-08-18 13:40:39 -07:00
Mark Otto
b5ac1b065e Merge branch '3.0.0-wip' of github.com:twbs/bootstrap into 3.0.0-wip 2013-08-18 11:08:29 -07:00
Mark Otto
ef4590dfb4 fixes #9786: enable tables in panels 2013-08-18 11:08:20 -07:00
Bruno Amaral
0989babe5d fixes two type-os in glyphicons 2013-08-18 18:47:40 +01:00
Mark Otto
f8b65b41ab Merge branch '3.0.0-wip' into bs3_restore_glyphicons
Conflicts:
	dist/css/bootstrap.min.css
2013-08-18 10:28:32 -07:00
Stephan Groß
142ada4219 Update progressbar
there is no gradient in 3.x
2013-08-18 17:17:07 +02:00
Mark Otto
fd97c2fce4 bad copypasta 2013-08-18 02:04:39 -07:00
Mark Otto
e13ca6d384 Upgrade to latest glyphicons 2013-08-18 01:46:26 -07:00
Mark Otto
f2e35bf702 docs layout and alignment refinement 2013-08-18 01:23:45 -07:00
Mark Otto
1e0453f825 Restore glyphicons 2013-08-18 00:36:51 -07:00
Mark Otto
d713f8341c Update jumbotron
* Defaults to no rounded corners and full width in the viewport
* When in a container, the jumbotron has extra padding and will have
rounded corners
* Updates default jumbotron example to show the full width default
display

Fixes #9759.
2013-08-17 20:33:52 -07:00
fat
1d53dd31f5 add role=menu to html 2013-08-17 15:48:29 -07:00
Mark Otto
3bcadfc2c5 brand, not title, in navbar examples 2013-08-17 14:42:55 -07:00
Mark Otto
3cb38197f2 more specific panel titles and docs notes 2013-08-17 14:27:21 -07:00
Mark Otto
3c880e681d finish up second pass through docs nav, headings, organization, naming, etc (another run through at #9710) 2013-08-16 13:30:33 -07:00
Mark Otto
551c561ee2 docs cleanup on naming to fix #9710 2013-08-16 12:43:54 -07:00
Mark Otto
7ab52272d7 better well content labels 2013-08-15 15:27:37 -07:00
Mark Otto
98368c0cca fixes #9632: button spacing in narrow viewports 2013-08-15 13:24:48 -07:00
Mark Otto
3d37833134 reorder alerts 2013-08-15 13:06:51 -07:00
Mark Otto
4da7cad021 reorder and cleanup progress bar display 2013-08-15 13:06:01 -07:00
Mark Otto
209d3af301 Fixes #9617: consistent variation order, add .label-primary 2013-08-15 11:31:26 -07:00
Mark Otto
da6a7827d2 fixes #9616 2013-08-15 11:09:13 -07:00
Mark Otto
039966a0fc add call out to fix #9569 2013-08-14 22:48:04 -07:00
Bas Bosman
c4568e4c3b Ordered breadcrumbs 2013-08-14 15:16:30 +02:00
Chris Rebert
aa2c152d85 rm action attr from highlighted example code too
fixup to e61c71e077
2013-08-14 00:09:42 -07:00
Mark Otto
fa330f308a Overhaul navbar alignment (.pull-) utilities (fixes #9440)
Now navbars have their own float utility classes, mixin-ed versions of
`.pull-left` and `.pull-right`.

* Removed chained `.navbar-nav.pull-right`
* Added `.navbar-left` and `.navbar-right` as mixins of the default
float utilities, but only above the `@grid-float-breakpoint` to match
the new navbar behavior
* Updated components docs to match the new changeas
* Added callout about component alignment here to explain the new
classes
2013-08-13 15:19:59 -07:00
Mark Otto
e61c71e077 fix up broken tests by removing empty attr 2013-08-13 14:23:10 -07:00
Mark Otto
bd93ed2cb6 Merge branch '3.0.0-wip' into bs3_navbar_overhaul
Conflicts:
	dist/css/bootstrap.min.css
2013-08-13 13:48:33 -07:00
Mark Otto
33a88c9a94 Merge branch '3.0.0-wip' into bs3_drop_accordion_for_panel
Conflicts:
	dist/css/bootstrap.min.css
2013-08-13 10:36:38 -07:00
Mark Otto
69a3e9b4d0 enable button groups in vertical button groups 2013-08-13 10:24:18 -07:00
Mark Otto
f15f259876 derp 2013-08-13 09:59:38 -07:00
Mark Otto
237640c706 Drop the accordion for the panel
* Deletes the accordion.less file
* Extends the panel to be collapsible with our JS plugin
* Supports panel color variations
2013-08-12 23:36:25 -07:00
Mark Otto
80eb09cc1b Merge branch '3.0.0-wip' into bs3_navbar_overhaul
Conflicts:
	components.html
	dist/css/bootstrap.min.css
2013-08-12 21:34:55 -07:00
Mark Otto
8bb7def26c Navbar refactor
* Now responsive by default (fits better with mobile-first approach)
* Requires `.nav-header` to group `.navbar-brand` and `.navbar-toggle`
for proper mobile display.
* Changed `.nav-collapse` to `.navbar-collapse`
* Simplified examples in docs
2013-08-12 21:23:28 -07:00
Chris Rebert
f111c3e763 Components docs: Dropdowns section: add .sr-only toggle buttons so aria-labelledby validates 2013-08-12 19:47:18 -07:00
Chris Rebert
f2cea2dc47 add alt text to <img>s in components.html 2013-08-12 19:46:34 -07:00
Chris Rebert
b33989a977 add src attribute to holder.js-powered <img>s so that they validate
use `data:` URL of empty invalid PNG: src="data:image/png;base64,"
2013-08-12 18:59:59 -07:00
Chris Rebert
3ec7930720 add ARIA roles to Dropdown examples in Components docs 2013-08-12 18:09:25 -07:00
Chris Rebert
8a1fc99f50 give navbar forms non-empty actions 2013-08-12 17:43:38 -07:00
Chris Rebert
10356f9d67 rm unnecessary blank id attribute 2013-08-12 17:43:38 -07:00
Chris Rebert
598f811fa0 add alt text to media object <img>s 2013-08-12 17:28:53 -07:00
Chris Rebert
5b9717ef67 add alt text to thumbnail <img>s 2013-08-12 17:28:53 -07:00
Mark Otto
a78c8d9c04 Newfangled input and button group sizing (fixes #9295)
Instead of applying `.btn-` or `.input-` to individual elements in
button and input groups, we now have new sizing classes to keep your
markup a little leaner.

* Add `.input-group-sm` or `.input-group-lg` to your `.input-group` to
replicate `.input-sm` and `.input-lg`, respectively.
* Add `.btn-group-xs`, `.btn-group-sm`, or `.btn-group-lg` to your
`.btn-group` to replicate `.btn-xs`, `.btn-sm`, and `. btn-lg`,
respectively.

Both sets of new sizing classes simply use the existing individual
sizing classes as mixins, so customization of them is automatically
inherited when compiling.
2013-08-12 14:03:57 -07:00
Mark Otto
1f745176d4 Merge pull request #9384 from BBosman/aria-hidden
Add missing aria-hidden attribs to close buttons
2013-08-12 09:55:46 -07:00
Bas Bosman
8dd45053ce Add missing aria-hidden attribs to close buttons 2013-08-12 17:56:10 +02:00
Bas Bosman
38b2083f3c Aria role search instead of form 2013-08-12 17:38:20 +02:00
Mark Otto
5e73cc90d9 fixes #9266 manually on account of list group file reorganization 2013-08-12 01:39:43 -07:00
Mark Otto
6dbf588237 fixes #9310: alerts aren't dismissable by default, now requires .alert-dismissable if you need a close button 2013-08-12 01:20:22 -07:00
Kevin Suttle
a86f5d24f8 Give forms and search fields proper ARIA roles
http://blog.paciellogroup.com/2013/02/using-wai-aria-landmarks-2013/#tablex

http://www.w3.org/TR/wai-aria/roles#form

http://www.w3.org/TR/wai-aria/roles#search
2013-08-11 21:45:50 -04:00
Mark Otto
a88888aaeb fix broken components page, also likely from @kevinsuttle's #9332 2013-08-11 14:49:50 -07:00
Mark Otto
0b9efa9565 fix indentation 2013-08-11 13:20:24 -07:00
Kevin Suttle
aa454134ec Use nav for proper HTML5 ARIA role mapping
http://www.w3.org/html/wg/drafts/html/master/sections.html#the-nav-element

http://dev.w3.org/html5/spec/sections.html#the-nav-element

http://blog.paciellogroup.com/2013/02/using-wai-aria-landmarks-2013/#tablex
2013-08-10 22:33:53 -04:00
Mark Otto
5eac5dab5d Merge pull request #9245 from jlaswell/patch-1
Update components.html
2013-08-10 15:39:28 -07:00
jlaswell
64888ce0b0 Update components.html
Keeping bs-examples consistent with code provided.
2013-08-08 12:31:48 -04:00
Guillermo González de Agüero
5c98288122 Changed "Standard pagination" to "Default pagination" 2013-08-08 12:26:06 +02:00
Guillermo González de Agüero
50d5a6d17a Fixed link to JavaScript buttons plugin 2013-08-07 12:42:46 +02:00
adamjacobbecker
a8d95d4721 Improve accessibility (Section 508, WCAG)
This PR significantly improves Bootstrap's accessibility for users of assistive technology, such as screen readers. Some of the these changes add additional markup to the source examples, but we believe that the sacrifice in readability is worth achieving more widespread usage of accessibility best-practices.

What was done
- Added lots of [WAI-ARIA attributes](http://www.w3.org/WAI/intro/aria)
- Added `.sr-only` helper class, that is only readable by screen readers (and invisible for all other users). This lets us - make progress bars and paginations accessible to screen reading users.
- Advised users to always use label elements. For inline forms, they can hide them with `.sr-only`
- Added 'Skip navigation' link
- Added "Accessibility" section to getting-started.html.

What *wasn't* done
- Contrast issues (twbs#3572)
- Tooltips (twbs#8469)
- Documentation re: usage of icons, since they now live in a separate repo

Major props to all that contributed: @bensheldon, @jasonlally, @criscristina, and @louh. Feel free to chime in, guys, if I've left anything out.
2013-08-06 21:58:09 -07:00
Chris Rebert
b976956432 Fix #9132, but in the correct branch
People, don't PR against `gh-pages` please!
2013-08-06 12:09:44 -07:00
Rakhat Jabagin
b29b8acd28 remove repeated 'pagination' class in code example 2013-08-06 09:19:07 +06:00
Mark Otto
c4281f3919 Update labels to include a base class
* Builds on the new button styles by requiring a `.btn-default` for the
regular, gray labels
* Updates components examples to show new stuff
2013-08-05 15:30:28 -07:00
Mark Otto
c15f5a89a0 Enable scrollable responsive nav bar
Fixes #9007 in a hopefully decent way
2013-08-05 14:19:32 -07:00
Chris Rebert
b6390d298a trivial docs grammar improvements 2013-08-04 00:06:56 -07:00
Chris Rebert
19e8342c7a adjust description & give source for nested .btn-groups example 2013-08-03 23:34:27 -07:00
Chris Rebert
a84e07b272 components.html: rm disconnected sentence fragment 2013-08-03 23:23:40 -07:00
Chris Rebert
b9c572184f add .btn-xs to .btn-group example 2013-08-03 21:59:01 -07:00
Chris Rebert
7a04e95b71 rm stray space in components.html 2013-08-03 21:58:31 -07:00