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

Follow-on updates from jennyhaines #2400

Merged
merged 1 commit into from
Nov 1, 2017

Conversation

sg00dwin
Copy link
Member

@sg00dwin sg00dwin commented Oct 30, 2017

Requested changes
#2362 (comment) and #2182 (comment)

screen shot 2017-10-30 at 3 49 34 pm

screen shot 2017-10-30 at 4 08 01 pm

@openshift-ci-robot openshift-ci-robot added the size/M Denotes a PR that changes 30-99 lines, ignoring generated files. label Oct 30, 2017
@@ -4,14 +4,10 @@
ng-if="showHeader"
class="key-value-editor-entry key-value-editor-entry-header">
<div class="form-group key-value-editor-header key-header">
Copy link
Member

Choose a reason for hiding this comment

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

Do we still need form-group?

Copy link
Member Author

Choose a reason for hiding this comment

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

well, it's setting the margin-bottom but that could be set using the specific class *-header

If so we'd need to do the same for the KVE ones above to be consistent

<div class="input-group">
<span class="help-block">{{keyPlaceholder}}</span>
</div>
{{keyPlaceholder}}
</div>
<div class="form-group key-value-editor-header value-header">
Copy link
Member

Choose a reason for hiding this comment

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

Do we still need form-group?

@@ -192,6 +192,12 @@
margin-bottom: 0;
padding-right: 5px;
width: 50%;
&.prefix-header {
display: none;
Copy link
Member

Choose a reason for hiding this comment

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

If the header is totally hidden, I'm not sure how you know what that field does on mobile.

Copy link
Member Author

Choose a reason for hiding this comment

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

well when empty it does display placeholder="Add prefix" :)
I'll append it to the single header and show at mobile.

screen shot 2017-10-30 at 5 24 10 pm

@openshift-ci-robot openshift-ci-robot added size/L Denotes a PR that changes 100-499 lines, ignoring generated files. and removed size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels Oct 30, 2017
@sg00dwin
Copy link
Member Author

@spadgett updated

screen shot 2017-10-30 at 5 24 10 pm

@spadgett
Copy link
Member

Hey @sg00dwin I'd suggest keeping the current layout for desktop, but stacking the labels above at mobile. Something like

Config Map / Secret
[my-config-map]

Prefix
_____________

Config Map / Secret
[my-secret]

Prefix
MY_PREFIX_

@sg00dwin
Copy link
Member Author

@spadgett Is this the structure you suggest?

env-from sp

@spadgett
Copy link
Member

Yeah, that's what I was thinking. Seeing it, I'm good with either approach, though.

@beanh66 Opinion?

@beanh66
Copy link
Member

beanh66 commented Oct 31, 2017

This approach LGTM @sg00dwin @spadgett

@sg00dwin
Copy link
Member Author

@spadgett PTAL

screen shot 2017-10-31 at 13 53 51

@spadgett
Copy link
Member

openshift web console 2017-10-31 16-44-09

@spadgett
Copy link
Member

Nevermind on the prefix width: I see it's to give room for the view details link

@@ -2,6 +2,10 @@
// Tooltips
// --------------------------------------------------

.tooltip-default-icon {
font-size: @font-size-base - 1;
vertical-align: top;
Copy link
Member

Choose a reason for hiding this comment

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

I like creating a common style, but currently most other tooltip icons aren't top-aligned. For instance,

openshift web console 2017-10-31 16-59-39

Copy link
Member Author

Choose a reason for hiding this comment

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

Yeah, thought about that. Maybe add a todo to sweep through and common class.

Prefix
<small class="pficon pficon-help"
<small class="pficon pficon-help tooltip-default-icon"
Copy link
Member

Choose a reason for hiding this comment

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

We should add a style to switch the cursor to the help icon on hover like other tooltips.

@@ -62,7 +64,16 @@
</div>
</div>

<div class="form-group environment-from-input prefix">
<div class="environment-from-input prefix">
<div
Copy link
Member

Choose a reason for hiding this comment

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

Ideally this is a <label for="..."> for accessibility, but that's a bit tricky since you have to generate IDs. I'm OK leaving that for later.

@@ -1,7 +1,7 @@
<form ng-if="$ctrl.apiObject" name="$ctrl.form" class="mar-bottom-xl">
<confirm-on-exit ng-if="$ctrl.canIUpdate && !$ctrl.ngReadonly" dirty="$ctrl.form.$dirty"></confirm-on-exit>
<div ng-repeat="container in $ctrl.containers">
<h3>Container {{container.name}}</h3>
<h2>Container {{container.name}}</h2>
Copy link
Member

Choose a reason for hiding this comment

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

I know this change was suggested by @jennyhaines, but I'm a little concerned that we're not making it on other browse pages / other tabs. All of the other headers are h3 on the browse pages.

We might hold off on this and look at it in the large context of all the pages later. Any objections @jennyhaines ?

If so, we'd probably keep the "Environment From" header an h4 (without the section-label class) keep the hierarchy.

@sg00dwin
Copy link
Member Author

sg00dwin commented Nov 1, 2017

@spadgett updated with changes PTAL

screen shot 2017-11-01 at 8 49 37 am

Copy link
Member

@spadgett spadgett left a comment

Choose a reason for hiding this comment

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

Thanks @sg00dwin

@spadgett
Copy link
Member

spadgett commented Nov 1, 2017

/lgtm

@openshift-ci-robot openshift-ci-robot added the lgtm Indicates that a PR is ready to be merged. label Nov 1, 2017
@spadgett
Copy link
Member

spadgett commented Nov 1, 2017

/kind bug

@openshift-ci-robot openshift-ci-robot added the kind/bug Categorizes issue or PR as related to a bug. label Nov 1, 2017
@openshift-merge-robot
Copy link
Contributor

Automatic merge from submit-queue.

@openshift-merge-robot openshift-merge-robot merged commit 655e2da into openshift:master Nov 1, 2017
@jennyhaines
Copy link

@spadgett @sg00dwin - understandable about the text size change. I think that works for now so the text styles map across the other tab content.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Categorizes issue or PR as related to a bug. lgtm Indicates that a PR is ready to be merged. size/L Denotes a PR that changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants