Skip to content

[Feature] Normalize class names for options. #843

Description

@yurisuika

Before Requesting

  • I found no existing issue matching my feature request
  • This request is related to Millennium, and not a request for a specific theme/addon

Describe the feature you'd like!

As of 3.4.0-b9, I noticed that class names are generated for your theme options. However, they are the exact string literal of the option name, which results in multiple class names from spaces. This does not produce a very useful result.

Image

Apostrophes are preserved, which I guess must be valid for class names. I don't know what happens if you have commas or periods etc.

I'd suggest that these class names be normalized into a camel case without the spaces and punctuation. So like My FREAKin' cool OPTION! becomes MyFreakinCoolOption.

Anything else?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions