Skip to content

Improvements for the dropdown chevrons #20

Description

@amotl

@msbt suggested at crate/crate-docs-theme#417 (comment):

Quick question about the chevrons you're using for up/down: Wouldn't it be nicer to have only one that turns 180° when you open it instead of two that show/hided depending on the status?

Like

details.sd-dropdown .sd-summary-down {
  transition: 180ms;
}

details.sd-dropdown[open] > .sd-summary-title .sd-summary-down {
  /* visibility: hidden; */
  transform: rotate(-180deg);
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions