Giter VIP home page Giter VIP logo

Comments (9)

christopherkindl avatar christopherkindl commented on July 18, 2024

Hi @mohamm-ad, thanks for letting us know, we will investigate asap! In the meantime, you can harmonize the heights via className customization: Try to insert [&>button]:h-9 for example.

from tremor.

mohamm-ad avatar mohamm-ad commented on July 18, 2024

Amazing @christopherkindl! And good call, that fix worked! Any suggested workarounds for styling the search in MultiSelect?

from tremor.

christopherkindl avatar christopherkindl commented on July 18, 2024

@mohamm-ad you are welcome! :) What do you want to style exactly?

from tremor.

mohamm-ad avatar mohamm-ad commented on July 18, 2024

image

When styling MultiSelect + MultiSelectItem, changes with Tailwind are reflected correctly across the component except for in the search area. For example, in the image above I applied text-xs to both, which works fine except for search (where text stays the default size). Apologies if I'm missing something!

from tremor.

severinlandolt avatar severinlandolt commented on July 18, 2024

Hey @mohamm-ad, I my tests, they seem all seem to have the same height. Can you post a screenshot of your example?

Image

Image

Image

from tremor.

severinlandolt avatar severinlandolt commented on July 18, 2024

Ad text: Why don't use use the Theme in the tremor config? You could easily overwrite tremor-default to your liking

 fontSize: {
        "tremor-label": ["0.75rem"],
        "tremor-default": ["0.875rem", { lineHeight: "1.25rem" }],
        "tremor-title": ["1.125rem", { lineHeight: "1.75rem" }],
        "tremor-metric": ["1.875rem", { lineHeight: "2.25rem" }],
      },

Image

from tremor.

mohamm-ad avatar mohamm-ad commented on July 18, 2024

Interesting! I'm not quite sure what's going on in mine, I haven't made any changes:

image

image

image

Yep, when you adjust the default text size, the search text adjusts accordingly as intended. But for this particular use case, I needed to adjust the placeholder and item size to be different from the default -- that worked fine with tailwind, but i wasn't able to change the search placeholder text.

from tremor.

severinlandolt avatar severinlandolt commented on July 18, 2024

Alright, the select on the left is too small. Its the Select or Multiselect? I am having a hard time replicating your issue. Could you share a minimal reproduction? @mohamm-ad

from tremor.

severinlandolt avatar severinlandolt commented on July 18, 2024

@mohamm-ad Can I close this issue from your side?

from tremor.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.