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.6
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.7
Choose a head ref
  • 7 commits
  • 8 files changed
  • 4 contributors

Commits on Jul 18, 2024

  1. Fix class detection in Slim templates with attached attributes and IDs (

    #14019)
    
    * Fix class detection in Slim templates with attached attributes and IDs
    
    * Update changelog
    
    * Tweak regex
    thecrypticace authored Jul 18, 2024
    Configuration menu
    Copy the full SHA
    bdc87ae View commit details
    Browse the repository at this point in the history

Commits on Jul 23, 2024

  1. Configuration menu
    Copy the full SHA
    866860e View commit details
    Browse the repository at this point in the history

Commits on Jul 24, 2024

  1. Normalize attribute selector for data-* and aria-* modifiers (#14037

    )
    
    Fixes #14026 
    See #14040 for the v4 fix
    
    When translating `data-` and `aria-` modifiers with attribute selectors,
    we currently do not wrap the target attribute in quotes. This only works
    for keywords (purely alphabetic words) but breaks as soon as there are
    numbers or things like spaces in the attribute:
    
    ```html
    <div data-id="foo" class="data-[id=foo]:underline">underlined</div>
    <div data-id="f1" class="data-[id=1]:underline">not underlined</div>
    <div data-id="foo bar" class="data-[id=foo_bar]:underline">not underlined</div>
    ```
    
    Since it's fairly common to have attribute selectors with `data-` and
    `aria-` modifiers, this PR will now wrap the attribute in quotes unless
    these are already wrapped.
    
    | Tailwind Modifier  | CSS Selector |
    | ------------- | ------------- |
    | `.data-[id=foo]`  | `[data-id='foo']`  |
    | `.data-[id='foo']`  | `[data-id='foo']`  |
    | `.data-[id=foo_i]`  | `[data-id='foo i']`  |
    | `.data-[id='foo'_i]`  | `[data-id='foo' i]`  |
    | `.data-[id=123]`  | `[data-id='123']`  |
    
    ---------
    
    Co-authored-by: Robin Malfait <malfait.robin@gmail.com>
    philipp-spiess and RobinMalfait authored Jul 24, 2024
    Configuration menu
    Copy the full SHA
    680c55c View commit details
    Browse the repository at this point in the history

Commits on Jul 25, 2024

  1. Update CHANGELOG.md

    philipp-spiess authored Jul 25, 2024
    Configuration menu
    Copy the full SHA
    605d8cd View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    245058c View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    aa6c10f View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    9824cb6 View commit details
    Browse the repository at this point in the history
Loading