Git Product home page Git Product logo

Comments (6)

colegoldsmith avatar colegoldsmith commented on September 25, 2024 1

@eric-schneider I'm trying to find other examples of this in the wild to get some inspiration. So far I found the OpenAI Cookbook pages to have a somewhat similar design problem of showing a code block that is the "instructed input" with another code block as the ideal results. I feel like this is really specific to command line tools so I'm trying to find well designed docs sites on them. The issue I'm seeing is documentation for command line tools is typically --help... not some fancy schmancy website with code blocks 😆

from docs-ui.

polandll avatar polandll commented on September 25, 2024 1

Really, in ANY command of any type, it is really helpful to users to see what they should expect. Not just for command line tools. It shorts the number of support messages/calls/whatever. I don't happen to have any results at my fingertips, frankly. I kind of like to think that this is a super-cool innovation that we did. 🤣

from docs-ui.

eric-schneider avatar eric-schneider commented on September 25, 2024 1

I spoke with @KimberlyFields this morning, and she said that we should at least update the collapsible styles to align with the original spec.

However, we're not totally satisfied with the original design. We don't think they stand out enough and we're worried that users won't see them as something they can/should interact with.

Kim pointed out that Stripe docs use a button style for certain collapsible content. We need to consider that block titles are customizable by the writer and thus will have varying length (the button would have to scale well). However, a button style might work well for collapsible "Results".

2024-03-13_11-17-08 (1)

from docs-ui.

eric-schneider avatar eric-schneider commented on September 25, 2024

@djsauble @polandll if you happen to know of any other docs sites that do a good job of showing expected command output, feel free to post them here.

from docs-ui.

aimurphy avatar aimurphy commented on September 25, 2024

Tagging on to this: It appears the collapsible block titles are a smaller font size than the default font size.
This makes them rather small and diminishes them. It also looks kind of silly because the text inside is the normal size.

The screenshots above seem to be the same font size everywhere, so I don't know if something got switched up at some point unintentionally.

@eric-schneider / @colegoldsmith Should I make a new issue about the font size?

image

image

Edit: Update that I noticed the tiny font only happens to collapsibles inside tabs.
It also seems like it turns bold when it's inside a tab.

Outside:
image

Inside:
image

from docs-ui.

eric-schneider avatar eric-schneider commented on September 25, 2024

@aimurphy Thanks for adding updated screenshots. The CSS indeed got updated at some point.

Also, no need to create a new issue. This issue should be used to capture all feedback related to the visual styling of the collapsible block, including title. (Though, the CSS for the title may be shared across other block elements, which we should pay attention to as well.)

from docs-ui.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.