-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
docs(datetime): add new css variable for styling picker #3303
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
d1c2d4b
to
0e6b41d
Compare
d045e13
to
074a4b6
Compare
Issue number: N/A --------- ## What is the current behavior? Picker has the following CSS variables for styling: `--wheel-fade-background-rgb` and `--wheel-highlight-background` These variables make sense when used from `ion-datetime`, but picker does not need the `wheel` prefix. ## What is the new behavior? ### Datetime - Adds `--wheel-highlight-border-radius` - Keeps `--wheel-fade-background-rgb` and `--wheel-highlight-background` - Assigns these variables to picker's new variables ```scss ion-picker { --highlight-background: var(--wheel-highlight-background); --highlight-border-radius: var(--wheel-highlight-border-radius); --fade-background-rgb: var(--wheel-fade-background-rgb); } ``` ### Picker Renames `--wheel-fade-background-rgb` and `--wheel-highlight-background` and adds another CSS variables to `ion-picker`: - Renames `--wheel-fade-background-rgb` to `--fade-background-rgb` - Renames `--wheel-highlight-background` to `--highlight-background` - Adds `--highlight-border-radius` ## Does this introduce a breaking change? - [ ] Yes - [x] No ## Other information PR to update the [Datetime docs](ionic-team/ionic-docs#3303) --------- Co-authored-by: ionitron <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Works well on my end.
For some reason the preview isn't using the dev build but it works locally
Make sure you are on the v8 docs not the v7 docs (we default to v7). So the actual preview link would be https://ionic-docs-git-fw-5582-ionic1.vercel.app/docs/v8/api/datetime#wheel-pickers
@liamdebeasi That's exactly what I was doing wrong. 🤦♀️ |
Adds new CSS variable to datetime that was added with ionic-team/ionic-framework#28654
7.5.8-dev.11702320396.1294c304
Preview link - https://ionic-docs-git-fw-5582-ionic1.vercel.app/docs/v8/api/datetime#wheel-pickers