-
Notifications
You must be signed in to change notification settings - Fork 859
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
Overriding header arrow font (DatePicker component) #49
Comments
To replace the arrows, I would use the Here is a fiddle that might help. <v-calendar>
<a
slot='header-left-button'
slot-scope='{ page }'
@click='page.movePrevMonth()'>
Prev
</a>
<a
slot='header-right-button'
slot-scope='{ page }'
@click='page.moveNextMonth()'>
Next
</a>
</v-calendar> |
Thank you for your answer @nathanreyes. I forgot to mention that I am using https://jsfiddle.net/y0t3fznc/ I think the problem is that |
Ah, yes, slots aren't currently passed down for the date picker. To get back to your original question, you can't target pseudo-elements with inline styes. That is one of the drawbacks to using them. Your original hard-coded approach will have to suffice for now until the date picker supports passing down slots. |
Thinking I may just implement |
Hello. Thank you for great component! Is there any progress implementing DatePicker slots customization? |
Yes, this is in the works. Been busy the last few weeks but will most likely be in the next revision. |
Thank you for fixing this in 0.7.0. (Somehow this issue wasn't linked to the mention in changelog). |
Also, just realized, the example you posted needs to be tweaked a bit to work (removed object destructuring):
|
any update? 3.0.3 still cannot has scrope slot events or disabled |
I successfully customized arrow icons in my Vue application using SCSS. Here's a breakdown of the steps I took:
Here's the refined SCSS code:
|
Is there a 'native' way to override the font used in the header arrow? I would like to use consistent arrows across the page, and the only way I came up with was to hardcode it this way in my stylesheet:
I know I can customize e.g. the font size using the
headerArrows
property ofthemeStyles
, but how can I style the pseudo element::before
with it?The text was updated successfully, but these errors were encountered: