Skip to content

Top panel column labels disappear when implementing custom viewer theme #2874

@cryptoderes

Description

@cryptoderes

Feature Request

Description of Problem:

Code Sandbox: https://codesandbox.io/p/sandbox/perspective-custom-theme-bug-6y24tl

I want to create custom CSS themes for perspective viewer that are accessible from the drop down menu. In particular, when applying a custom CSS theme to the viewer, I want the top panel column labels ("Group By", "Split By", "Order By", "Where") to render so I can implement a usable custom theme.

The custom theme in the example was created as a CSS file that is loaded into the viewer via viewer.resetThemes, and can be selected from the dropdown menu by choosing the option "Style1". When the custom theme is applied, the label tags of these items exist in the HTML body, however the labels no longer have the "::before" pseudo class. The text does not show up in the viewer.

Potential Solutions:

I would like to create custom themes wherein I modify the exposed CSS variables (to toggle fields such as icon color, chart series colors, and fonts) and offer them in the dropdown alongside native Perspective themes.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions