Skip to content

Conversation

@VeraZab
Copy link
Contributor

@VeraZab VeraZab commented Feb 7, 2018

styling control adjustments for 3d
projection.{x|y|z} and error_{x|y|z}, will be done in axes

<TraceAccordion>
<Section name={_('Trace')} attr="name">
<TextEditor label={_('Name')} attr="name" richTextOnly />
<TraceOrientation
Copy link
Contributor Author

Choose a reason for hiding this comment

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

explanation:
that rule that requires for the first section in a fold to have an attribute for the fold to display, it doesn't work for for choropleths.

Those traces don't have 'opacity' and 'orientation' attributes. So an empty 'Trace' header section shows up for those trace types.

Previously trace.name was in that section, so that was fine, all traces can have names. But now trace.name is in the create panel, which looks good, but it looks like it's hard to find an attribute that exists on all traces.

So I'm adding trace.name to the Trace Style panel, so that we don't break the above rule and that the panel looks good for all traces.

Copy link
Contributor

Choose a reason for hiding this comment

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

Sounds good. Makes sense to have the name panel in both places anyway IMO. The other option would be to remove the attr="name" prop from the Section and then it'll not appear if it's empty.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yeah, I was going to say that if I remove the attr="name" then the panel's empty, and then I looked and saw that none of our other sections have an attr.

Well, I'll keep it in both places for now.

@nicolaskruchten
Copy link
Contributor

💃

@VeraZab VeraZab merged commit 6567f65 into master Feb 7, 2018
@VeraZab VeraZab deleted the 3d branch February 7, 2018 15:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants