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

PanelColorSettings: add README.md file #17996

Closed
wants to merge 1 commit into from

Conversation

retrofox
Copy link
Contributor

Description

It adds the README.md file to the PanelColorSettings compoment.

How has this been tested?

Just read the doc.

@retrofox retrofox added the [Type] Developer Documentation Documentation for developers label Oct 17, 2019
@retrofox retrofox changed the title panel-color-settings: add README.md file Oct 17, 2019
@@ -0,0 +1,42 @@
# `PanelColorSettings`

Render a panel with color choices shown in circles, allowing a user to pick them.
Copy link
Contributor

Choose a reason for hiding this comment

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

I think a really important thing to mention here is that PanelColorSettings can render multiple color palettes.

* *Required:* No
* *Default:* Null

The content to be displayed within the panel.
Copy link
Contributor

Choose a reason for hiding this comment

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

Specifically below the color palettes. It could also be worth mentioning that this is useful for rendering a ContrastChecker within the panel.

* **Type:** `Array`
* *Required:* Yes

An array of props used for mapping both ColorIndicator and ColorPaletteControl components.
Copy link
Contributor

Choose a reason for hiding this comment

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

I think it might be good to mention that each entry in the array represents an individual color palette. An example showing the shape of the object might be good here as well.


### `disableCustomColors`

Whether to allow custom color or not.
Copy link
Contributor

Choose a reason for hiding this comment

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

Minor nitpick:

Suggested change
Whether to allow custom color or not.
Whether to allow custom colors or not.
@talldan
Copy link
Contributor

talldan commented Oct 18, 2019

Thanks for adding these docs @retrofox! I left a few minor comments on the PR where I think the descriptions can be improved.

Base automatically changed from master to trunk March 1, 2021 15:42
@retrofox retrofox closed this Apr 11, 2024
@ellatrix ellatrix deleted the update/add-panel-color-setting-readme branch April 11, 2024 17:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Type] Developer Documentation Documentation for developers
2 participants