diff options
author | Mark Otto <markd.otto@gmail.com> | 2020-10-28 06:45:48 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-28 06:45:48 +0300 |
commit | 3e2f9ab237e0e338fbe497213ad2353e59fbee9c (patch) | |
tree | d1f1843ce62f3c5754e46f0df8eceb4d67a9b72d /site/data | |
parent | 582f52e9e147c5386d07f241a74a185175cc461d (diff) |
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>
Diffstat (limited to 'site/data')
-rw-r--r-- | site/data/examples.yml | 2 | ||||
-rw-r--r-- | site/data/sidebar.yml | 1 |
2 files changed, 1 insertions, 2 deletions
diff --git a/site/data/examples.yml b/site/data/examples.yml index 1a6884d41c..a29179bff2 100644 --- a/site/data/examples.yml +++ b/site/data/examples.yml @@ -47,8 +47,6 @@ - category: Experiments description: "Examples that focus on future-friendly features or techniques." examples: - - name: Floating labels - description: "Beautifully simple forms with floating labels over your inputs." - name: Offcanvas description: "Turn your expandable navbar into a sliding offcanvas menu." diff --git a/site/data/sidebar.yml b/site/data/sidebar.yml index a751ccbfc5..1e6505c727 100644 --- a/site/data/sidebar.yml +++ b/site/data/sidebar.yml @@ -48,6 +48,7 @@ - title: File - title: Range - title: Input group + - title: Floating labels - title: Layout - title: Validation |