Skip to content

feat(VInput): add new prop indent-details#21265

Merged
J-Sek merged 3 commits intonextfrom
feat/indent-details-prop
Oct 9, 2025
Merged

feat(VInput): add new prop indent-details#21265
J-Sek merged 3 commits intonextfrom
feat/indent-details-prop

Conversation

@johnleider
Copy link
Copy Markdown
Member

Motivation and Context

fixes #16679

Markup:

Details
<template>

  <v-defaults-provider :defaults="defaults">
    <v-container class="pa-md-12">
      <v-select :items="['md1', 'md2', 'md3']" label="Blueprint" clearable v-model="select"></v-select>
      <v-row>
        <v-col cols="12">
          <v-text-field :error-messages="['Required']" label="Text field" ></v-text-field>
        </v-col>

        <v-col cols="12">
          <v-textarea :error-messages="['Required']" label="Textarea"></v-textarea>
        </v-col>

        <v-col cols="12">
          <v-select :error-messages="['Required']" label="Select"></v-select>
        </v-col>

        <v-col cols="12">
          <v-combobox :error-messages="['Required']" label="Combobox"></v-combobox>
        </v-col>

        <v-col cols="12">
          <v-radio-group :error-messages="['Required']" label="Combobox">
            <v-radio label="Option 1" value="option1"></v-radio>
            <v-radio label="Option 2" value="option2"></v-radio>
            <v-radio label="Option 3" value="option3"></v-radio>
          </v-radio-group>
        </v-col>

        <v-col cols="12">
          <v-checkbox :error-messages="['Required']" label="Combobox"></v-checkbox>
        </v-col>

        <v-col cols="12">
          <v-switch :error-messages="['Required']" label="Combobox"></v-switch>
        </v-col>

        <v-col cols="12">
          <v-slider :error-messages="['Required']"></v-slider>
        </v-col>

        <v-col cols="12">
          <v-range-slider :error-messages="['Required']"></v-range-slider>
        </v-col>
      </v-row>
    </v-container>
  </v-defaults-provider>
</template>

<script setup>
  import { computed, ref } from 'vue'
  import { md1, md2, md3 } from '../src/blueprints/index'

  const select = ref()

  const defaults = computed(() => {
    if (select.value === 'md1') {
      console.log(md1.defaults)
      return md1.defaults
    } else if (select.value === 'md2') {
      return md2.defaults
    } else if (select.value === 'md3') {
      return md3.defaults
    }

    return {}
  })
</script>

@johnleider johnleider added this to the v4.0.0 (Revisionist) milestone Apr 15, 2025
@johnleider johnleider self-assigned this Apr 15, 2025
@johnleider johnleider force-pushed the feat/indent-details-prop branch from 7408605 to 56ecf35 Compare April 15, 2025 03:10
@johnleider
Copy link
Copy Markdown
Member Author

bugbot run

Copy link
Copy Markdown

@cursor cursor bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bug: Styling Breaks When Removing Plain Underlined Class

Removing the v-input--plain-underlined class from VTextField, VTextarea, and VFileInput components breaks styling for plain and underlined variants. The VInput.sass file still relies on this class for styling rules, including adjustments to prepend/append icon alignment and padding.

packages/vuetify/src/components/VTextField/VTextField.tsx#L166-L174

v-model={ model.value }
class={[
'v-text-field',
{
'v-text-field--prefixed': props.prefix,
'v-text-field--suffixed': props.suffix,
},
props.class,
]}

packages/vuetify/src/components/VTextarea/VTextarea.tsx#L214-L226

v-model={ model.value }
class={[
'v-textarea v-text-field',
{
'v-textarea--prefixed': props.prefix,
'v-textarea--suffixed': props.suffix,
'v-text-field--prefixed': props.prefix,
'v-text-field--suffixed': props.suffix,
'v-textarea--auto-grow': props.autoGrow,
'v-textarea--no-resize': props.noResize || props.autoGrow,
},
props.class,
]}

packages/vuetify/src/components/VFileInput/VFileInput.tsx#L187-L195

modelValue={ props.multiple ? model.value : model.value[0] }
class={[
'v-file-input',
{
'v-file-input--chips': !!props.chips,
'v-file-input--hide': props.hideInput,
},
props.class,
]}

Fix in Cursor


BugBot free trial expires on June 13, 2025
You have used $0.00 of your $5.00 spend limit so far. Manage your spend limit in the Cursor dashboard.

Was this report helpful? Give feedback by reacting with 👍 or 👎

@J-Sek J-Sek force-pushed the feat/indent-details-prop branch from 56ecf35 to 7ba92cd Compare October 9, 2025 20:17
J-Sek
J-Sek previously approved these changes Oct 9, 2025
@J-Sek J-Sek enabled auto-merge (squash) October 9, 2025 21:01
@J-Sek J-Sek merged commit f483092 into next Oct 9, 2025
17 of 18 checks passed
@J-Sek J-Sek deleted the feat/indent-details-prop branch October 9, 2025 21:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants