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

Add support for postfix modifier #214

Merged
merged 12 commits into from
Apr 2, 2023

Conversation

dcastil
Copy link
Owner

@dcastil dcastil commented Apr 1, 2023

Closes #211

@github-actions github-actions bot added the feature Is new feature label Apr 1, 2023
@github-actions
Copy link

github-actions bot commented Apr 1, 2023

size-limit report 📦

Path Size
dist/tailwind-merge.mjs 6.84 KB (+2.34% 🔺)
dist/tailwind-merge.cjs.production.min.js 6.84 KB (+2.24% 🔺)

@dcastil dcastil marked this pull request as ready for review April 2, 2023 12:16
@dcastil dcastil added the needs changelog edit Needs edit in changelog before release label Apr 2, 2023
@dcastil dcastil merged commit d17ec3a into main Apr 2, 2023
@dcastil dcastil deleted the feature/211/add-support-for-postfix-modifier branch April 2, 2023 12:19
@github-actions
Copy link

github-actions bot commented Apr 5, 2023

This was addressed in release v1.12.0.

sebald referenced this pull request in sebald/pattern-analyzer Apr 7, 2023
[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [tailwind-merge](https://github.com/dcastil/tailwind-merge) |
[`1.11.0` ->
`1.12.0`](https://renovatebot.com/diffs/npm/tailwind-merge/1.11.0/1.12.0)
|
[![age](https://badges.renovateapi.com/packages/npm/tailwind-merge/1.12.0/age-slim)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://badges.renovateapi.com/packages/npm/tailwind-merge/1.12.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://badges.renovateapi.com/packages/npm/tailwind-merge/1.12.0/compatibility-slim/1.11.0)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://badges.renovateapi.com/packages/npm/tailwind-merge/1.12.0/confidence-slim/1.11.0)](https://docs.renovatebot.com/merge-confidence/)
|

---

### Release Notes

<details>
<summary>dcastil/tailwind-merge</summary>

###
[`v1.12.0`](https://github.com/dcastil/tailwind-merge/releases/tag/v1.12.0)

[Compare
Source](https://github.com/dcastil/tailwind-merge/compare/v1.11.0...v1.12.0)

With this release tailwind-merge supports all features introduced in
[Tailwind CSS v3.3](https://tailwindcss.com/blog/tailwindcss-v3-3).

##### New Features

- Add support for postfix modifier by
[@&#8203;dcastil](https://github.com/dcastil) in
[https://github.com/dcastil/tailwind-merge/pull/214](https://github.com/dcastil/tailwind-merge/pull/214)
- This adds support for `line-height` modifiers in `font-size` utilities
like `text-lg/7` and more potential postfix modifiers in the future
([learn
more](https://github.com/dcastil/tailwind-merge/blob/v1.12.0/docs/features.md#supports-postfix-modifiers)).
- All classes are checked for postfix modifiers since there will be more
in the future and they'll be configurable with plugins.
- tailwind-merge can't know from the class syntax alone whether
something is a modifier or not. E.g. there is `w-1/2` which doesn't
contain a modifier. So tailwind-merge always checks whether class
without potential modifier exists and if it doesn't it checks for full
class. This behavior might get reversed in the next major version as a
breaking change ([learn
more](https://github.com/dcastil/tailwind-merge/issues/215)).
- Added `conflictingClassGroupModifiers` object to tailwind-merge config
([learn
more](https://github.com/dcastil/tailwind-merge/blob/v1.12.0/docs/configuration.md#postfix-modifiers-conflicting-with-class-groups)).

**Full Changelog**:
dcastil/tailwind-merge@v1.11.0...v1.12.0

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined),
Automerge - At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you
are satisfied.

♻ **Rebasing**: Whenever PR is behind base branch, or you tick the
rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update
again.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR has been generated by [Mend
Renovate](https://www.mend.io/free-developer-tools/renovate/). View
repository job log
[here](https://app.renovatebot.com/dashboard#github/sebald/pattern-analyzer).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNS4zNC4xIiwidXBkYXRlZEluVmVyIjoiMzUuMzQuMSJ9-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
@dcastil dcastil added the context-v1 Related to tailwind-merge v1 label Oct 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
context-v1 Related to tailwind-merge v1 feature Is new feature needs changelog edit Needs edit in changelog before release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add line-height modifier support to font-size utilities (introduced in Tailwind CSS v3.3)
1 participant