Skip to content

Commit

Permalink
Upgrade: Do not migrate overflow-clip utility
Browse files Browse the repository at this point in the history
  • Loading branch information
philipp-spiess committed Nov 29, 2024
1 parent 6abd808 commit eafd2cc
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
4 changes: 3 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

- Nothing yet!
### Fixed

- _Upgrade (experimental)_: Do not migrate `overflow-clip` utility ([#15244](https://github.com/tailwindlabs/tailwindcss/pull/15244))

## [4.0.0-beta.3] - 2024-11-27

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import { expect, test } from 'vitest'
import { simpleLegacyClasses } from './simple-legacy-classes'

test.each([
['overflow-clip', 'text-clip'],
['overflow-ellipsis', 'text-ellipsis'],
['flex-grow', 'grow'],
['flex-grow-0', 'grow-0'],
Expand All @@ -17,6 +16,9 @@ test.each([
['max-lg:hover:!decoration-slice', 'max-lg:hover:box-decoration-slice!'],

['focus:outline-none', 'focus:outline-hidden'],

// Should not convert v2 utilities
['overflow-clip', 'overflow-clip'],
])('%s => %s', async (candidate, result) => {
let designSystem = await __unstable__loadDesignSystem('@import "tailwindcss";', {
base: __dirname,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import { printCandidate } from '../candidates'
// Classes that used to exist in Tailwind CSS v3, but do not exist in Tailwind
// CSS v4 anymore.
const LEGACY_CLASS_MAP = {
'overflow-clip': 'text-clip',
'overflow-ellipsis': 'text-ellipsis',

'flex-grow': 'grow',
Expand Down

0 comments on commit eafd2cc

Please sign in to comment.