]> git.ipfire.org Git - thirdparty/bootstrap.git/commit
v5: Floating labels (#30449)
authorMark Otto <markd.otto@gmail.com>
Wed, 28 Oct 2020 03:45:48 +0000 (20:45 -0700)
committerGitHub <noreply@github.com>
Wed, 28 Oct 2020 03:45:48 +0000 (20:45 -0700)
commit3e2f9ab237e0e338fbe497213ad2353e59fbee9c
treed1f1843ce62f3c5754e46f0df8eceb4d67a9b72d
parent582f52e9e147c5386d07f241a74a185175cc461d
v5: Floating labels (#30449)

* v5: Promote floating labels example to component

- Adds new .form-floating
- Stubs out basics of a docs page
- Removes existing Example

* Update floating labels to support .form-select, make inputs and selects more consistent

- To do this, I made the .form-control and .form-select consistent in min-height vs height
- Removed some unused variables now
- Updated -color to be the -color because I don't know why this was any different before
- Update page to include some examples for layout, validation, and value
- Rewrite styles to not modify padding, but instead transform and opacity

* Streamline and bulletproof some things

- Apply some optimizations from code review
- Removed unecessary properties from the label
- Add some comments for what properties are required
- Move from fixed height for labels to height 100% so we can support textareas
- Improve docs a little bit, add ToC

* Move some values to variables, switch from scaling font-size to scale, update transforms

* Bring over changes from #30966 and add to them to tighten things up

* Delete the now unused example images

* Fix typo

* Allowlist the calc function

* Add transform-origin, update transform values

* Test out autofill fix

* Fix linter issue

* Mention it in the migration guide

* Bump bundlesize

* Add one more variable per review

* Shave .25rem off the height

Co-authored-by: XhmikosR <xhmikosr@gmail.com>
45 files changed:
.bundlewatch.config.json
dist/css/bootstrap-grid.css.map
dist/css/bootstrap-reboot.css
dist/css/bootstrap-reboot.css.map
dist/css/bootstrap-utilities.css
dist/css/bootstrap-utilities.css.map
dist/css/bootstrap.css
dist/css/bootstrap.css.map
dist/js/bootstrap.bundle.js
dist/js/bootstrap.bundle.js.map
dist/js/bootstrap.esm.js
dist/js/bootstrap.esm.js.map
dist/js/bootstrap.js
dist/js/bootstrap.js.map
js/dist/alert.js.map
js/dist/button.js.map
js/dist/carousel.js.map
js/dist/collapse.js.map
js/dist/dom/data.js.map
js/dist/dom/event-handler.js.map
js/dist/dom/manipulator.js
js/dist/dom/manipulator.js.map
js/dist/dom/polyfill.js.map
js/dist/dom/selector-engine.js.map
js/dist/dropdown.js
js/dist/dropdown.js.map
js/dist/modal.js.map
js/dist/popover.js.map
js/dist/scrollspy.js.map
js/dist/tab.js.map
js/dist/toast.js.map
js/dist/tooltip.js.map
scss/_forms.scss
scss/_variables.scss
scss/forms/_floating-labels.scss [new file with mode: 0644]
scss/forms/_form-select.scss
site/content/docs/5.0/examples/floating-labels/floating-labels.css [deleted file]
site/content/docs/5.0/examples/floating-labels/index.html [deleted file]
site/content/docs/5.0/forms/floating-labels.md [new file with mode: 0644]
site/content/docs/5.0/forms/overview.md
site/content/docs/5.0/migration.md
site/data/examples.yml
site/data/sidebar.yml
site/static/docs/5.0/assets/img/examples/floating-labels.png [deleted file]
site/static/docs/5.0/assets/img/examples/floating-labels@2x.png [deleted file]