aboutsummaryrefslogtreecommitdiff
path: root/scss/_buttons.scss
AgeCommit message (Collapse)AuthorFilesLines
2024-02-06Fix the focus ring on focused checked buttons (#39595)Louis-Maxime Piton1-0/+9
2023-09-13New `$btn-link-focus-shadow-rgb` for color modes customisation (#39119)Giovanni Piller Cottrer1-1/+1
2023-03-02Fix button visibility issue on dark theme (#38115)lavsemen1-1/+1
* Fix button visibility issue on dark theme * Add $btn-color-variable in _buttons.scss * Apply suggestions from code review --------- Co-authored-by: Семен Лаверентьев <[email protected]> Co-authored-by: Mark Otto <[email protected]>
2023-02-20Fix shadow of .btn-linkSerhii Babakov1-1/+1
2023-01-06Switch from none keyword value to a fake shadow for btn-linkMark Otto1-1/+1
2022-09-20Explicitly target `.btn-check` and undo `:hover` (#37165)Patrick H. Lauke1-2/+8
rather than the other way around, which caused specificity issues
2022-09-04Remove gradient from .btn-linkMark Otto1-0/+3
2022-09-04Rework button focus/active styling, with extra changes for checks/radios ↵Patrick H. Lauke1-10/+17
(#37026) * Replace :focus styles with :focus-visible * Remove :active / .active styles * Don't apply :hover styles for `.btn` that follows a `.btn-check` This removes a large part of the visual confusion of button checks/radios - that you currently have to move your mouse away from them to see what they actually changed to (checked or unchecked) * Reintroduce :active, but *not* for button checks/radios * Sort focus styling specifically for button checks/radios don't change background on focus, just give it the border/outline. again, avoids confusion whether something is checked or not while focused * Re-add `outline:0` which was lost when resolving last merge conflict Co-authored-by: Mark Otto <[email protected]>
2022-08-31v5/docs: reintroduce `outline` for docs code samples, buttons when ↵Patrick H. Lauke1-1/+5
`:not(:focus-visible)` (#36507) * Remove outline suppression for focused `<pre>` Sighted keyboard users rely on knowing where their focus is. If the `<pre>` receives focus (so that it can be scrolled by keyboard users, for instance) then it's essential that they know this is the case * Only suppress outline for buttons when `:not(:focus-visible)` * Add right-hand margin to pre avoids having the focus outline awkwardly clipped by the copy button
2022-08-31bugfix undefined border color variable for btnMichael Geuchmann1-0/+1
2022-07-17Fix active/focused button link text colorJulien Déramond1-0/+9
2022-06-08Manually set hover and active backgrounds and borders for dark and light buttonsMark Otto1-1/+21
2022-05-22Stylelint: Disable `custom-property-empty-line-before`Mark Otto1-2/+0
2022-05-20add back focus box shadow on btn linkRyan Berliner1-0/+1
2022-03-31Adding @include everytime it's not the caselouismaxime.piton1-1/+1
2022-03-13Add additional root variables, rename `$variable-prefix` to `$prefix` (#35981)Mark Otto1-52/+52
* Add additional root variables, rename $variable-prefix to $prefix - Adds new root CSS variables for border-radius, border-width, border-color, and border-style - Adds new root CSS variables for heading-color, link-colors, code color, and highlight color - Replaces most instances of Sass variables (for border-radius, border-color, border-style, and border-width) for CSS variables inside _variables.scss - Updates $mark-padding to be an even pixel number - Renames $variable-prefix to $prefix throughout * Bundlewatch
2022-02-16Fixed border radius var name and .show targetEugene Kopyov1-1/+1
2022-02-14Convert .btn and mixins to use CSS variablesMark Otto1-25/+72
2021-10-09Revert "Add `align-self: center` to buttons for improved rendering in flex ↵Mark Otto1-1/+0
containers" (#35143) This reverts commit 94c80ff613dce6620591acd7f9930ce8f40c5ed0.
2021-09-07Add `align-self: center` to buttons for improved rendering in flex containersZaid Jawed1-0/+1
Fixes #34834
2021-02-10Add Sass docs (variables, mixins, and loops) to most pages (#32747)Mark Otto1-0/+2
* WIP: Mention variables, mixins, and loops in docs * Add Sass sections to component pages * add sass docs for forms and content * Update buttons.md * Remove empty mixins sections * Massive update to utilities and some consistency changes Co-authored-by: XhmikosR <[email protected]>
2020-11-09Drop `.btn-block` classes, replace with utilities (#31995)Mark Otto1-15/+0
Co-authored-by: XhmikosR <[email protected]>
2020-06-15Switch to btn-checkMartijn Cuppens1-3/+3
2020-06-15Remove checkbox/radio toggle from button plugin in favor of a CSS only solutionMartijn Cuppens1-4/+5
2020-06-12Stylelint: remove redundant disables (#31006)XhmikosR1-1/+1
2020-04-26Rename variables for brevityMark Otto1-1/+1
- Rename `$enable-prefers-reduced-motion-media-query` to `$enable-reduced-motion` - Rename `$enable-pointer-cursor-for-buttons` to `$enable-button-pointers`
2020-03-23Added focus state to .btn-link (#30036)Tim Dujardin1-1/+0
2020-03-20Remove redundant text decoration from hover statesMartijn Cuppens1-1/+1
2020-03-05$link-decoration: underline affects some components (#30262)Martijn Cuppens1-0/+1
Co-authored-by: Shohei Yoshida <[email protected]> Co-authored-by: Martijn Cuppens <[email protected]>
2019-12-27Simplify disabled styles (#29296)Martijn Cuppens1-17/+9
* Simplify disabled styles * Mention pointer-events usage
2019-10-25Add configurable button text wrapping (#29554)Martijn Cuppens1-0/+1
2019-08-30Clean up line heights & add line height utilities (#29271)Martijn Cuppens1-3/+4
2019-08-16Restore `cursor: pointer` for checkbox/radio buttons (#29239)Martijn Cuppens1-0/+1
2019-07-12Remove attribute selectors (#28988)Martijn Cuppens1-9/+0
2019-05-08Drop all hover mixinsMark Otto1-2/+2
Previously deprecated in v4.x, this clears out the now unused Sass option and removes some unused mixins. Arguably we could remove more, but I like the hover-focus mixin and we make extensive use of it across the project.
2019-04-23Separate `$btn-link` colors from `$link-color` (#28681)GeoSot1-2/+2
2019-02-07Optional btn & input font sizes (#28068)Martijn Cuppens1-0/+1
2019-02-06Add text-decoration to .btn-link. (#28169)Bardi Harborow1-0/+1
2019-01-04Move hand cursor for buttons to rebootMartijn Cuppens1-5/+0
2018-10-17Fix btn focus color (#27178)Martijn Cuppens1-2/+1
2018-09-18Variable .btn and .form-control font sizes (#26908)Martijn Cuppens1-3/+3
2018-09-17#27220: cleanup .btn-link hover/focus properties (#27250)Martijn Cuppens1-4/+0
2018-09-02Set .btn base colorMartijn Cuppens1-0/+2
2018-09-02Move transparent background to .btn and remove background-imageMartijn Cuppens1-0/+1
2018-08-19Remove nowrap from .btnRowan-James Tran1-1/+0
2018-07-20Allow background images for active buttonsMartijn Cuppens1-1/+0
2018-03-12Disable link functionality on disabled `btn-link` (#25645)Peter Etelej1-0/+1
Future-proof disabling of clicks on disabled `btn-link`. Fixes #25639 ensuring consistency between `btn-link` `<button>`s and `<a>`s when disabled.
2018-01-18Outline button hover color (#25339)Mark Otto1-5/+1
2018-01-15Consistently use `:disabled` rather than `[disabled]` selector (#25317)Patrick H. Lauke1-4/+4
Closes https://github.com/twbs/bootstrap/issues/25316
2017-12-27line breakMark Otto1-0/+1