Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NAutoComplete Theme Overrides #5842

Open
5 tasks done
thibodeauxjl opened this issue Apr 5, 2024 · 1 comment · May be fixed by #5843
Open
5 tasks done

NAutoComplete Theme Overrides #5842

thibodeauxjl opened this issue Apr 5, 2024 · 1 comment · May be fixed by #5843
Labels
bug Something isn't working

Comments

@thibodeauxjl
Copy link

thibodeauxjl commented Apr 5, 2024

Describe the bug

Attempting the change Select Menu size, it appears the NAutoComplete isn't relaying the size value to the InternalSelectMenu.

Steps to reproduce

Component.vue

<n-auto-complete
    v-model:value="model"
    placeholder="Placeholder"
    :options="options"
    size="small"
    @select="handleSelect"
/>

App.vue

const ThemeOverrides = {
    AutoComplete: {
        peers: {
            InternalSelectMenu: {
                optionFontSizeSmall: '10px'
            }
        }
    }
}

Link to minimal reproduction

https://codesandbox.io/p/devbox/pedantic-euler-5cc79z

System Info

System:
    OS: Windows 11 10.0.22631
    CPU: (24) x64 AMD Ryzen 9 7900X 12-Core Processor
    Memory: 16.76 GB / 31.12 GB
  Binaries:
    Node: 18.14.0 - C:\Program Files\nodejs\node.EXE
    Yarn: 1.22.21 - ~\AppData\Roaming\npm\yarn.CMD
    npm: 9.7.2 - C:\Program Files\nodejs\npm.CMD
  Browsers:
    Edge: Chromium (123.0.2420.65)
    Internet Explorer: 11.0.22621.1

Used Package Manager

npm

Validations

@thibodeauxjl thibodeauxjl added the untriaged need to sort label Apr 5, 2024
@thibodeauxjl thibodeauxjl changed the title NAutoComplete Theme Vars NAutoComplete Theme Overrides Apr 5, 2024
@thibodeauxjl
Copy link
Author

Having this problem with NSelect size="small" as well.

@OrbisK OrbisK added bug Something isn't working and removed untriaged need to sort labels Apr 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants