Skip to content

Update togglebutton style to be more minimal and resemble Jupyter Lab UI/UX #46

Closed

Description

@choldgraf

Context

Currently, we have a fairly standard "button" UI for the toggle directive:

chrome_JGjTUJtlhc

This works fine, though has a fairly "basic" button style.

Proposal

I wanted to see what it might look like for us to re-work this button UI with a few guiding principles:

  • Make it more minimal, and reduce the amount of "ink" used in general
  • Make it look more similar to the show/hide behavior from Jupyter Notebooks / Lab (since this project is used in conjunction with myst-nb quite often).

I put together this quick prototype with very few CSS changes. Curious if others think this would be an improvement on our current UI:

chrome_hAm06EevXq

Alternatively, this might be styling that other themes could implement themselves, if this seems too "opinionated" for a base extension...

Tasks and updates

No response

Activity

  1. added
    enhancement
    on Jun 30, 2022
  2. choldgraf commented on Jun 30, 2022

    @choldgraf
    MemberAuthor

    cc @mmcky @janssenhenning @tfiers and @kloczek who have recently opened issues in this repo, which suggests to me they are actually using this extension 😅

    Also I will note that @yuvipanda very conveniently sent a message at the end of the first GIF and I thought it was kind of awesome so left it in. Yuvi let me know if you want me to remove it :-D

  3. tfiers commented on Jun 30, 2022

    @tfiers

    I agree with the principles and the proposal looks good!

  4. choldgraf commented on Jun 30, 2022

    @choldgraf
    MemberAuthor

    Given the generally positive initial feedback, I decided to give this a shot at implementing, so feel free to also provide feedback here:

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

    enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions