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

Patch floating labels #30

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

Volbeck
Copy link

@Volbeck Volbeck commented Dec 12, 2024

Libriry allowes only using bootstrap input groups, it would be good to add opportunity of using floating labels

@drikusroor drikusroor requested a review from Copilot March 2, 2025 12:35
Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

PR Overview

This PR introduces support for floating labels by adding a new slot in the VueTypeaheadBootstrap component and allowing custom input group classes while also updating the README with maintenance and repository migration information.

  • Added a to enable custom label placement.
  • Introduced the inputGroupClass prop for custom input group styling.
  • Updated the README to reflect repository migration and maintenance changes.

Reviewed Changes

File Description
README.md Updated the project status and maintenance information.
src/components/VueTypeaheadBootstrap.vue Added floating label slot and custom input group class handling.

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

Comments suppressed due to low confidence (1)

src/components/VueTypeaheadBootstrap.vue:137

  • [nitpick] The prop name 'inputGroupClass' is very similar to the computed property 'inputGroupClasses', which may lead to confusion. Consider renaming the prop to something like 'customInputGroupClasses' to clearly indicate its purpose.
inputGroupClass: {

Comment on lines +186 to 187
if(this.inputGroupClass) return this.inputGroupClass
return this.size ? `input-group input-group-${this.size}` : 'input-group'
Copy link
Preview

Copilot AI Mar 2, 2025

Choose a reason for hiding this comment

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

When inputGroupClass is provided, the default 'input-group' styling is completely bypassed. Consider merging inputGroupClass with the default classes to avoid potential layout issues, especially with floating labels.

Suggested change
if(this.inputGroupClass) return this.inputGroupClass
return this.size ? `input-group input-group-${this.size}` : 'input-group'
const defaultClasses = this.size ? `input-group input-group-${this.size}` : 'input-group';
return this.inputGroupClass ? `${defaultClasses} ${this.inputGroupClass}` : defaultClasses;

Copilot is powered by AI, so mistakes are possible. Review output carefully before use.

@drikusroor
Copy link
Owner

Libriry allowes only using bootstrap input groups, it would be good to add opportunity of using floating labels

Hi @Volbeck, not sure if you are still interested in this PR but if so, could you please resolve the merge conflicts?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants