0
0
mirror of https://github.com/twbs/bootstrap.git synced 2024-11-29 11:24:18 +01:00
Commit Graph

949 Commits

Author SHA1 Message Date
XhmikosR
23803d3de7 Remove the unused PNG files. 2020-09-10 11:56:02 +03:00
Mark Otto
eb23b98fb5 First pass at cleaning up About pages and brand assets 2020-09-10 11:56:02 +03:00
Patrick H. Lauke
42a0f8f007
Docs: (subjectively) nicer looking accordion example (#31137)
* Docs: (subjectively) nicer looking accordion example

the use of `.btn-link` currently just looks a bit odd, subjectively (as in v5 we now force the underline to always be there, while in v4 at least it was only on hover/focus).
`.btn-light` seems more fitting

* Add extra classes for nicer overall look

as suggested by @ysds

* Tweak accessibility note for accordions and optional keyboard interactions
2020-09-10 08:04:13 +01:00
Mauricio Hernan Cabrera
6455c2e8aa
Add border width utility (#31484)
Co-authored-by: XhmikosR <xhmikosr@gmail.com>
Co-authored-by: Martijn Cuppens <martijn.cuppens@gmail.com>
2020-09-09 11:28:52 +03:00
Gaël Poupard
5b37d03ff9
docs(placeholder): drop role=img and use aria-hidden for decorative SVG placeholders (#31575)
Co-authored-by: XhmikosR <xhmikosr@gmail.com>
2020-09-04 20:21:54 +03:00
Gaël Poupard
fb9bf54d2c
docs(build tools): mention how to get the sources (#31590) 2020-09-04 20:18:20 +03:00
Gaël Poupard
7134f6aa38
Drop h4 color customization in callouts (#31576) 2020-09-03 10:45:04 +02:00
Patrick H. Lauke
0e007e697e
Docs: Add top/bottom margin to highlighted code samples (#31036)
* Add top/bottom margin to highlighted code samples

provide more space to avoid having the "Copy" button overlap code sample content

* Modify clipboard button style

Per https://github.com/twbs/bootstrap/pull/31036#issuecomment-661322566 and https://github.com/twbs/bootstrap/pull/31036#issuecomment-668162630

* Tweak margin, clipboard button size and position

Co-authored-by: XhmikosR <xhmikosr@gmail.com>
2020-09-02 07:17:53 +01:00
Arnaud Thomas D
7326232b0e
Fix incorrect green and cyan hex codes (#31572) 2020-09-01 14:20:59 -07:00
Jeremy Jackson
1503aa18d1
Add default parameters to each border radius mixin (#31571)
* Add default parameters to each border radius mixin

* Add border radius changes to migration guide

Co-authored-by: Jeremy Jackson <jeremy@librarymarket.com>
2020-09-01 14:17:17 -07:00
Alex Plescan
a8b8f631cf
docs: Fix typo on Customize -> Color page (#31556)
Co-authored-by: XhmikosR <xhmikosr@gmail.com>
2020-09-01 17:05:40 +03:00
Łukasz Holeczek
730a020140 Update icons.yml
Add new icons set - CoreUI Icons
2020-08-22 14:41:46 -07:00
Gaël Poupard
b547ef4a85
docs(typography): missing punctuation (#31505) 2020-08-19 15:44:52 +01:00
Christian Oliff
ed9c481ef4 Mention that Edge Legacy also supports 'filling' their track
Edge Legacy support filling their track by default.

Example: https://codepen.io/coliff/pen/VwaZgVZ
2020-08-17 17:00:04 -07:00
Christian Oliff
d0a87ef784 Remove 'both' as its no longer just 2 breakpoints (now that XXL is there) 2020-08-17 16:59:12 -07:00
maks
adf4567386 make breakpoints specifications consistent with layout/grid.md
0-576px could be misinterpreted "up to 576px included"
2020-08-05 16:05:16 -07:00
kyletsang
b6b672c00b docs: Fix issue number typo in migration 2020-08-05 16:04:58 -07:00
Shohei Yoshida
e8566e10c7
box-shadow() mixin allow 'null' and drop support 'none' with multiple args (#30394)
* Support 'null' and drop `none` with multiple args

* Output a warning when use 'none' with multiple arguments

* Add migration note

* Update migration.md

Co-authored-by: Mark Otto <markd.otto@gmail.com>
Co-authored-by: XhmikosR <xhmikosr@gmail.com>
2020-08-04 21:51:19 +03:00
Mark Otto
2d2b6759b6
Add view on GitHub links for easier content editing from the docs (#31339)
* Add view on GitHub links for easier content editing from the docs

* Update docs.html

* Move to .btn-bd-light

Co-authored-by: XhmikosR <xhmikosr@gmail.com>
2020-08-04 08:09:45 +03:00
Mohammad Ali Shahbazi
5be7fe001e Added opacity-75 and opacity-50 classes 2020-08-03 10:54:03 -07:00
Mohammad Ali Shahbazi
76ad4aa083 Fixed typo in docs v5 (Utilities/API) page 2020-08-03 10:54:03 -07:00
Mark Otto
393efaf795
Update migration guide (#31387)
* Document change to form check and radio size

* Update todos in Migration guide

Co-authored-by: XhmikosR <xhmikosr@gmail.com>
2020-08-03 19:42:31 +03:00
Patrick H. Lauke
a21f605299
Add padding to badges (#31132)
* Add padding to badges

The current badges are very tightly padded, and because the top and bottom padding are the same, and aligned to the baseline, this makes badges with descenders (e.g. the "g" in "Danger") look uncomfortably close to the bottom. Adding more ample padding masks this a bit.
An alternative would be to have separate top and bottom padding, with the bottom one slightly larger than the top - but conversely, that then makes badges that contain no text with descenders, and particularly badges that contain all uppercase characters, look too bottom-heavy.
Also adding some left/right extra padding, as currently the pill badges look uncomfortably tight on the sides due to the rounding.
2020-08-02 16:28:23 +03:00
Mark Otto
2a3e487dba
Update copy around breakpoint sizing (#31382)
* Update copy around breakpoint sizing

Fixes #31288

* Update breakpoints.md

* Further copy changes

Co-authored-by: XhmikosR <xhmikosr@gmail.com>
2020-07-31 12:38:17 -07:00
Patrick H. Lauke
23c3806864
Add accessibility note about dismissible alerts and focus (#31358) 2020-07-31 10:31:09 +01:00
Patrick H. Lauke
cdea25584d
Cleanup/fix after the sr-only to visually-hidden renaming (#31359)
* sr-only -> visually-hidden cleanup

It seems the old screen-readers.md file was left behind, and forgot to rename the mixin

* Fix broken mixins for visually-hidden
2020-07-31 10:27:36 +01:00
Rohit Sharma
2ec2e138c9
Add toasts to the components requiring JavaScript (#31344) 2020-07-21 16:08:21 +03:00
Gaël Poupard
cb1eee16f0 docs(skippy): prevent skip links from overlapping header 2020-07-13 12:36:29 -07:00
XhmikosR
9e372b121a Sort the versions from the latest to the oldest. 2020-07-13 12:08:34 -07:00
Mark Otto
c52b7d5475 Improve spacing 2020-07-13 12:08:34 -07:00
Laim
aa5be4c20c Update version.md to include v5
Version.md on v5.getbootstrap.com is only referring to v1 > v4 when it should be referring to v1 > v5.
2020-07-13 12:08:34 -07:00
Mark Otto
8d89e0a14d
Migration update (#31278)
* Clarify screen reader changes

* Add some docs and reboot notes to migration guide

* Add mention of docs renaming of screen reader helper page

* Mention null vars from navs PR at #31035

* Update migration.md

Co-authored-by: Patrick H. Lauke <redux@splintered.co.uk>
Co-authored-by: XhmikosR <xhmikosr@gmail.com>
2020-07-13 21:40:27 +03:00
Mark Otto
6914efe8dd
v5: Tweak some colors (#31276)
* Tweak green and cyan colors, bump min contrast ratio to 4.5

Co-authored-by: XhmikosR <xhmikosr@gmail.com>
2020-07-13 21:23:38 +03:00
Rohit Sharma
91c11d6465
toasts: make default duration 5s (#31109)
Co-authored-by: XhmikosR <xhmikosr@gmail.com>
2020-07-12 15:43:26 +03:00
Gaël Poupard
37ef4e4b5e
Easier disabled state customization for button variants (#30639)
* feat(buttons): easier disabled state customization

* docs(migration): mention new arguments for disabled state in button-variant()

* Update migration.md

Co-authored-by: XhmikosR <xhmikosr@gmail.com>
Co-authored-by: Mark Otto <markd.otto@gmail.com>
2020-07-12 07:56:33 +03:00
Patrick H. Lauke
eeb73e0ccf
Docs: forms accessibility cleanup (#31114)
* Expand on disabled fieldsets and faked buttons

include further advice/information on how to disable faked buttons for keyboard/AT users

* Centralise accessible name advice in forms overview

seems odd to only mention (separately) label, aria-label etc in input-group and layout. the advice is just as pertinent in other sections like select. checks only skims over this.

moving this, in expanded form, into the overview section itself. adding a specific cross-reference (just because they are easily left with no accname at all) in the checks page.

* Change warning about accessibility, modify server-side example

- paradoxically, due to our current problems with validation (see #28414) and the fact that browsers seem to have improved in this area for the most part, it's now actually better to use browser-native validation
- added explicit `id` and `aria-describedby` association to at least the server-side form error messages, to show how it should be done properly, and expanded the prose for that explaining this.

* Replace `.sr-only` with `.visually-hidden` in new addition

* Copy edits for clarity in parenthetical

* Copy and formatting tweaks

- Wordsmithing here and there
- Turns some hyphens into em dashes
- Turns a long running comma separated list into an unordered list
- Rearranges some copy just a bit

Co-authored-by: Mark Otto <markd.otto@gmail.com>
2020-07-11 21:38:43 +01:00
Florian Lacreuse
19b5908b05 Fix docs sass importing example. 2020-07-11 12:01:15 -07:00
Mark Otto
6acdfdbfa0 Update layout.md 2020-07-11 11:49:56 -07:00
Rohit Sharma
6eaa36fb6f Single line example for inline forms 2020-07-11 11:49:56 -07:00
Patrick H. Lauke
69b3c46483 Rename sr-only to visually-hidden in new/renamed helper doc file 2020-07-10 16:00:50 -07:00
Patrick H. Lauke
9d2cd1b9b8 Add alias/redirect 2020-07-10 16:00:50 -07:00
Patrick H. Lauke
7657c1e37d Reword slightly awkward-sounding description 2020-07-10 16:00:50 -07:00
Patrick H. Lauke
4702f0cdd4 Emphasise/call out the note about .invisible and AT 2020-07-10 16:00:50 -07:00
Patrick H. Lauke
3a79335a0b Docs: rename "Screen readers" helper page to "Visually hidden"
"screen readers" is quite reductive, as there are other assistive technologies. content hidden this way is even announced by things like Alexa/Siri etc, so it's not so much just "screen readers".
in the long run, we may even consider changing the actual classnames (maybe `.visually-hidden` / `.visually-hidden-focusable`, though admittedly that's a bit verbose).

also includes a tiny tweak to layout.md to generalise the note about using `.sr-only`
2020-07-10 16:00:50 -07:00
Florian Lacreuse
49934b2bba
Fix some hexa in colors docs. (#31254) 2020-07-07 20:28:24 +03:00
Patrick H. Lauke
828366de89
Docs: separate button group out of checks/radios, expand button groups page (#31201)
* Keep checks/radio toggle buttons on topic

- give examples of the pure toggle checks and radios, without the button group class. show that these work fine without `.btn-group`, but still cross-reference it
- move the explanation from "Checkbox toggle buttons" directly to "Toggle buttons", as the mention of using button classes applies equally to the subsequent "Radio toggle buttons" and "Outlined styles" subsections.

* Expand button group description

as it's not just single line, but vertical as well

* Expand button group examples

- add more colour ... `.btn-secondary` is just dull and uninspiring
- new section to showcase "Checkbox and radio button groups"
- add a mixed styles example
- add an example of vertical radio button group
2020-07-06 08:52:43 +01:00
Martijn Cuppens
7cedb8eeae
Fix sidebar jump (#31232) 2020-07-03 15:16:05 +02:00
Patrick H. Lauke
10690dd317
Rename sr-only/sr-only-focusable (#31139)
* Rename `sr-only`/`sr-only-focusable`

To be more representative of the fact that these are not necessarily "screen reader" specific, but actually apply to assistive technologies in general (and also things like Alexa/Siri/etc). Goes hand-in-hand with #31133

Co-authored-by: XhmikosR <xhmikosr@gmail.com>
2020-07-03 14:38:11 +03:00
Patrick H. Lauke
0a6cf9036c
Docs: improve/expand button documentation (#31093)
* Docs: improve/expand button documentation

- since we're not doing the disabled cursor thing anymore anyway, remove confusing/unnecessary mention for link-based disabled buttons
- make the disabled toggle example using a link actually follow the preceding advice of also having `tabindex="-1"` and `aria-disabled="true"`
- tweak the link functionality callout to also still mention `aria-disabled` to reinforce the idea
- tweak toggle state description (not just `<button>`s, but also links etc...so just remove mention of `<button>` there; also reinforce accessibility aspect once more)
- add a new callout that cross-references checkbox-based toggles, and what the similarity/difference between them is
- add a matching cross-reference callout to the checkbox-based toggle buttons page

* Update link to now renamed checks-radios.md
2020-07-03 12:34:32 +01:00
Patrick H. Lauke
386f9e327e
Docs: clarify that pointer events classes don't affect keyboard interaction (#31134)
* Docs: clarify that pointer events classes don't affect keyboard interaction

* Neutralise example links that are `pe-none`
2020-07-03 12:23:28 +01:00