Skip to content

Remove default media: 'screen' for stylesheet tag in line with Rails defaults #535

@brendon

Description

@brendon

Rails now doesn't include the media attribute by default for stylesheet_link_tag but the default for vite_javascript_tag has media: 'screen':

rails/rails#41213

It'd be a breaking change but would keep things in line with the new rails defaults.

vite_stylesheet_tag would now also not return a media attribute since it relies on stylesheet_link_tag without any default options.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions