Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs(menu-toggle): Adds docs for split button examples. #10268

Merged
merged 2 commits into from
Jun 3, 2024

Conversation

edonehoo
Copy link
Contributor

Closes #10258

@edonehoo edonehoo self-assigned this Apr 10, 2024
@patternfly-build
Copy link
Contributor

patternfly-build commented Apr 10, 2024

@edonehoo
Copy link
Contributor Author

@thatblindgeye lmk what you think about my initial edits / if I'm off the mark on things!


```

### Split button toggle with checkbox and toggle button text
### Split button toggle with checkbox and clickable text label
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe Split button toggle with a labelled checkbox? "clickable text label" makes me think of the clickable toggle text use case more than the onChange-triggering use case (and could be moved to line 210 for that example, but just having "text label" alone is also fine with me for that).

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The "...with labelled checkbox" could work. Maybe the other example name could be tweaked to "...with checkbox and toggle text label"? @edonehoo wdyt?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I really like "a labelled checkbox"!

For the "clickable" example - I was trying to find a way to make things more concise/short and avoid writing "toggle" multiple times in the heading, but definitely want to be precise

  • Is "split button toggle with checkbox label that toggles" accurate? If not, I can go with Eric's suggestion instead!

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah having to repeat the "Split button toggle" text makes things difficult here 😆 Could "checkbox label that toggles" imply that the text is toggling the checkbox?

Do you think updating the examples to "Split toggle..." rather than "Split button toggle..." would help at all? I feel like ideally it'd be great to have a separate examples section for "Split button toggle examples" then the example titles could just omit the "Split button toggle" part, but I feel like there's still the issue with how our examples are rendered in Org that would cause some issue with that.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"a separate examples section for "Split button toggle examples"" is exactly what I was wishing we could do 😭 but yeah I remember there being org restrictions around that

I like the idea of going with "split toggle". It's a small change, but it'll help cut down on wordiness, while still getting the point across!

I went with your previous selection "Split toggle with checkbox and toggle text label" & updated the other example headings in my last commit. I think I'm still having my own comprehension issues with these examples that get in the way of my suggestions lol - so as long as what we have makes sense from a dev standpoint I'm happy!

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

To be fair the examples are very similar, so I definitely get any confusion or anything with them! Thanks for making these updates 🪨 ⭐

@tlabaj tlabaj merged commit edc5599 into patternfly:main Jun 3, 2024
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

MenuToggle split button doc updates
5 participants