Giter VIP home page Giter VIP logo

Comments (10)

luoxiaozero avatar luoxiaozero commented on August 18, 2024 1

If you want to change the popup style of all date picker components, you can add a class to override it.

If you want to change only the popup style of the specified date picker component, I can add a popup_class attribute to the date picker component.

from thaw.

skydig avatar skydig commented on August 18, 2024

the quick solution is to" change the popup style of all date picker components", could you give me a class override example? I can try it.
thanks in advance.

from thaw.

luoxiaozero avatar luoxiaozero commented on August 18, 2024

Add the following classes.

.thaw-date-picker-panel {
    font-size: 12px;
}

from thaw.

skydig avatar skydig commented on August 18, 2024

image
it really can work, but the panel position is strange just live above picture.

and date panel can work too, the panel can appear but disappear quickly and date can not be selected?

I use leptos_meta style grammer as following, don't know it's correct or not.
image

from thaw.

luoxiaozero avatar luoxiaozero commented on August 18, 2024

Try it like this.

<Style>
".font-normal { font-weight: 400; font-size: 0.75rem; }"
".thaw-time-picker-panel, .thaw-date-picker-panel { font-size: 0.75rem; }"
</Style>
"date"
<DatePicker class="font-normal" value=date_value/>
"time"
<TimePicker class="font-normal" value=time_value />

from thaw.

skydig avatar skydig commented on August 18, 2024

Try it like this.

<Style>
".font-normal { font-weight: 400; font-size: 0.75rem; }"
".thaw-time-picker-panel, .thaw-date-picker-panel { font-size: 0.75rem; }"
</Style>
"date"
<DatePicker class="font-normal" value=date_value/>
"time"
<TimePicker class="font-normal" value=time_value />

thanks,it really work, I don't know why it's class="font-normal", but it really work,

sorry again,
I add button color class as follwing picture, but why the button color keep as default(not changed)?
image

and using .thaw-alert__content, .thaw-alert__header to change alert component font size seem not work( only header font size can change?)

from thaw.

luoxiaozero avatar luoxiaozero commented on August 18, 2024

There should be style overwriting due to css priority issues.

from thaw.

skydig avatar skydig commented on August 18, 2024

There should be style overwriting due to css priority issues.

is there temporary solution or it's application leptos issue?

from thaw.

luoxiaozero avatar luoxiaozero commented on August 18, 2024

I add button color class as follwing picture, but why the button color keep as default(not changed)?

Try this.

<Style>
".my-button.thaw-button { background-color: #04AA6D; }"
</Style>
<Button class="my-button">"next"</Button>

and using .thaw-alert__content, .thaw-alert__header to change alert component font size seem not work( only header font size can change?)

I guess it is a css priority issue, which can be solved by adding !important.

from thaw.

skydig avatar skydig commented on August 18, 2024

splendid! your important solution can work
thanks!

from thaw.

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.