-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
updating pie options panel to EUI #18579
Conversation
ppisljar
commented
Apr 25, 2018
•
edited
Loading
edited
💚 Build Succeeded |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm going to submit a PR agains yours @ppisljar with just some layout cleanup stuff. Other than that the only issues I saw were:
- Show tooltip switch isn't working
- There is a console error about supplying a string as the value to
EuiFieldNumber
💚 Build Succeeded |
Hey @ppisljar Not sure if you saw my PR: ppisljar#4 Mainly, I'm thinking that you can go ahead and get rid of the accordion hiding the Label settings as there's plenty of room to keep these visible. |
nope, i completely missed that, sorry |
52145aa
to
8b45a25
Compare
@cchaos i split the settings into two panels and set grow to false, to match with how other options look like (for example input controls) there is a bug when disabling labels: any idea what could be causing it or how to fix that ? |
should we update:
|
💚 Build Succeeded |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There is one small bug that needs to be fixed. Also I would suggest, that we create an EditorOptionPanel
component somewhere in Kibana, that we'll use for these panels. That way we can later way easier change the styling of all editor panels (or e.g. add collapsing to them) or move them to a new EUI component if needed. I would e.g. already now like to make the heading smaller (to xs
).
<EuiSwitch | ||
label="Show tooltip per slice" | ||
checked={params.addTooltip} | ||
onChange={this.handleUpdate('addTootip', 'checked')} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Typo :-) Tootip
-> Tooltip
(that's why this option isn't working btw).
Is I don't think that the other two elements need info icons. They're almost self-explanatory, they're non-destructive actions and can you easily see the change after pressing play. I don't seem to have that weird checkbox issue as you do: What browser are you using and if you go to https://elastic.github.io/eui/#/forms/form-controls and down to the checkbox section, do you have the issue there as well? |
@ppisljar I found the source of the input bug: Looks like Kibana's |
'show tooltip' is used on every other visualization, so i suggest to keep it consistent. |
d722e2c
to
725ca7a
Compare
💔 Build Failed |
Blocked by elastic/eui#805 |
- Removed the accordion (unecessary as there is still a lot of space available) - Added section headers - Wrapped in a EuiPanel - Disabling all other label setting controls if the “Show labels” is off - Changing all labels to sentence case (only first word should be capitalized)
725ca7a
to
2fc48fc
Compare
💚 Build Succeeded |
an experiment where ng-show was replaced by ng-if: |
closing, as the bug in eui will not be fixed and we will not be euifying our editor for now |