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

docs(datetime): add new css variable for styling picker #3303

Merged
merged 7 commits into from
Dec 12, 2023

Conversation

brandyscarney
Copy link
Member

@brandyscarney brandyscarney commented Dec 8, 2023

Adds new CSS variable to datetime that was added with ionic-team/ionic-framework#28654


⚠️ TODO - remove dev build 7.5.8-dev.11702320396.1294c304

Preview link - https://ionic-docs-git-fw-5582-ionic1.vercel.app/docs/v8/api/datetime#wheel-pickers

Copy link

vercel bot commented Dec 8, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
ionic-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Dec 12, 2023 3:58pm

@brandyscarney brandyscarney marked this pull request as ready for review December 11, 2023 20:33
@brandyscarney brandyscarney requested a review from a team as a code owner December 11, 2023 20:33
@brandyscarney brandyscarney requested review from liamdebeasi and a team and removed request for a team December 11, 2023 20:33
brandyscarney added a commit to ionic-team/ionic-framework that referenced this pull request Dec 11, 2023
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]>
Copy link
Contributor

@liamdebeasi liamdebeasi left a 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

@brandyscarney
Copy link
Member Author

@liamdebeasi That's exactly what I was doing wrong. 🤦‍♀️

@brandyscarney brandyscarney merged commit f352ae4 into feature-8.0 Dec 12, 2023
4 checks passed
@brandyscarney brandyscarney deleted the FW-5582 branch December 12, 2023 15:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants