Skip to content

Ability to change color of individual panel's header-box and text color in the box #699

Open

Description

@ajeetmandal

Is your feature request related to a problem? Please describe.
I want to use iSEE to create a single-cell explorer to deploy at our institute, and we’re working to meet web accessibility compliance (validated with a web accessibility tool ANDI. Since, in our iSEE app the color contrast (background and the text color) in a few panels are not passing the above tool we are failing the deployment.

Describe the solution you'd like
If the panel header-box color (e.g. green color in the panel 'Feature assay plot 1' in the snapshot attached) or the color of the text/panel ID (e.g. 'Feature assay plot 1' in the snapshot) could be modified/changed, it will resolve the problem.

Describe alternatives you've considered
I still could not find any work around to this problem since this feature is hard coded in the iSEE package.

Additional context
Attached is a snapshot of 'Feature assay plot 1'.

Image

Activity

  1. kevinrue commented on Sep 22, 2025

    @kevinrue
    Member

    Thanks for pointing this out!

    At present, the color of each panel is defined by the panel developer and cannot be changed.

    I can imagine a mechanism to parameterise this but I genuinely don't have the time to look into this this week.

    It is however a very important consideration for accessibility, and I'm happy to put it high on the priority list.

    Thanks, and I hope you won't mind waiting a bit for one of us to look into this at the next opportunity.

    Best,
    Kevin

  2. kevinrue commented on Sep 22, 2025

    @kevinrue
    Member

    By the way, as a quick fix, any chance you can propose a green colour that your web accessibility tool ANDI is happy with?

    We could then simply make that shade of green the default for the panel.

    The implementation of a customisable colour scheme could come later, as it would require more work.

  3. ajeetmandal commented on Sep 22, 2025

    @ajeetmandal
    Author

    Hi Kevin,
    Thanks for this quick fix. Actually, there are two panel header-boxes whose colors are not compliant with ANDI, however it suggests the compliant colors:

    1. Feature Assay plot: #488521
    2. Row Data plot: #bf5900
      Above background colors will help the text (inside the boxes) meet minimum AA contrast ratio (4.5:1).
      BEst,
      Ajeet
  4. csoneson commented on Sep 28, 2025

    @csoneson
    Member

    Actually we were a bit more forward-looking than we remember 🙂, and it is already possible to change the color of the panels - e.g. to set the colors you mention above and assuming that your object is called se, the following should work:

    se <- iSEE::registerAppOptions(se, panel.color = c(FeatureAssayPlot = "#488521", RowDataPlot = "#bf5900"))
    iSEE(se)
    
  5. ajeetmandal commented on Sep 28, 2025

    @ajeetmandal
    Author
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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