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

IconField and Button doesn't look ok with Lara theme when adding in Card #title template #182

Open
mbaljeetsingh opened this issue Mar 12, 2024 · 1 comment
Labels
question Issue contains a question about the use of PrimeVue components or the products it supports

Comments

@mbaljeetsingh
Copy link
Contributor

This is how IconField and button components looks with Lara theme in the Card #title template. It looks ok outside the card title. They look quite big. IconField icon is not aligned properly.

image
<card class="mt-8">
        <template #title>
          <div
            class="border-bottom-1 mt-3 flex w-full items-start justify-between"
          >
            <div class="flex flex-col gap-2">
              <h2 class="text-900 mb-3 mt-0 text-lg font-medium">Assets</h2>
            </div>
            <div class="space-x-3">
              <Button
                label="Upload Asset"
                severity="info"
                outlined
              />
              <Button
                label="Import Asset"
                severity="info"
                outlined
              />
            </div>
          </div>
          <div
            class="surface-border mt-3 flex flex-row items-center justify-between gap-5"
          >
            <IconField iconPosition="left" class="w-full">
              <InputIcon>
                <i class="pi pi-search"></span>
              </InputIcon>
              <InputText  placeholder="Search" class="w-full" />
            </IconField>
            <i class="pi pi-search cursor-pointer"></span>
          </div>
        </template>
</card>
@atakantepe
Copy link
Member

Hi, the title is probably overwriting the input's font-weight and causing the issue. I suggest using <template #header>. Or you can overwrite the classes in the input text

@atakantepe atakantepe assigned atakantepe and unassigned atakantepe May 4, 2024
@atakantepe atakantepe added the question Issue contains a question about the use of PrimeVue components or the products it supports label May 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Issue contains a question about the use of PrimeVue components or the products it supports
Projects
None yet
Development

No branches or pull requests

2 participants