Skip to content

Make it easier to include custom stylesheets when using Spring Security #22476

@sissbruecker

Description

@sissbruecker

Describe your motivation

In v25 we want to recommend using @StyleSheet as the default way of loading CSS in an application. However, when you enable Spring Security and then add a custom stylesheet, it's not going to be loaded:

@StyleSheet(Aura.STYLESHEET)  
@StyleSheet("styles.css")  
public class App implements AppShellConfigurator {}

To get the styles loaded I have to:

  • Figure out the issue is related to Spring Security
  • Figure out the magic incantation to permit loading my custom styles

Which sucks, because my current task is styling the application, not figuring out how Spring Security works. It's also confusing because the Aura styles are loading due to our custom Spring security rules for that.

This behavior is also a downgrade compared to the legacy theme folder, which just made things work out of the box.

Describe the solution you'd like

CSS included with @StyleSheet should always load, regardless of the security configuration.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    Status

    🪵Product backlog

    Status

    Maybe

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions