Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: tailwindlabs/tailwindcss
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v3.4.11
Choose a base ref
...
head repository: tailwindlabs/tailwindcss
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v3.4.12
Choose a head ref
  • 2 commits
  • 15 files changed
  • 4 contributors

Commits on Sep 17, 2024

  1. Insert @defaults at start of stylesheet (#14427)

    Prior to this PR, we'd put all of the `@defaults` (the CSS variables and
    stuff) _after_ the `base` rules. This creates an issue when using
    `optimizeUniversalDefaults` with CSS that looks like this:
    
    ```css
    @tailwind base;
    @tailwind components;
    @tailwind utilities;
    
    @layer base {
      input {
        @apply shadow;
      }
    }
    ```
    
    …because the default shadow stuff ends up after the base `input` rules,
    so the generated styles are like this:
    
    ```css
    input {
      --tw-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
      --tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color),
        0 1px 2px -1px var(--tw-shadow-color);
      box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000),
        var(--tw-shadow);
    }
    
    input {
      --tw-ring-offset-shadow: 0 0 #0000;
      --tw-ring-shadow: 0 0 #0000;
      --tw-shadow: 0 0 #0000;
      --tw-shadow-colored: 0 0 #0000;
    }
    ```
    
    This means all of the actual shadow values for the input are reset and
    the shadow doesn't work.
    
    Fixes #14426.
    
    Lots of failing tests right because this changes a ton of stuff, albeit
    in a totally inconsequential way. @thecrypticace if you could update
    these for me this week that would be a huge help, just banging this fix
    out quick while the kids are napping 😴
    
    ---------
    
    Co-authored-by: Adam Wathan <[email protected]>
    Co-authored-by: Jordan Pittman <[email protected]>
    3 people authored Sep 17, 2024
    Configuration menu
    Copy the full SHA
    fe48ca8 View commit details
    Browse the repository at this point in the history
  2. 3.4.12

    RobinMalfait committed Sep 17, 2024
    Configuration menu
    Copy the full SHA
    e8614a2 View commit details
    Browse the repository at this point in the history
Loading