-
Notifications
You must be signed in to change notification settings - Fork 75
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
Fix create namespace modal #1219
Fix create namespace modal #1219
Conversation
the test failures look relevant, probably want to update the tests :) |
|
Unless @ZitaNemeckova disagress, I'd just remove the |
So, @MilanPospisil I talked with @sbuenafe-rh today, and we have couple of changes....
|
Yeah, for all helpers is good 👍 But it doesn't look that good yet: The text is now too close to the close button vertically, I think we'd need to push the close button closer to the top right corner (and the same distance from each), and keep at least the same padding between the button and the text. Possible options:
export class HelperText extends React.Component<IProps, {}> {
render() {
- let div = <div style={{ height: '10px' }}></div>;
+ let div = "Namespace name";
return (
export class HelperText extends React.Component<IProps, {}> {
render() {
- let div = <div style={{ height: '10px' }}></div>;
+ let div = <div></div>;
return ( and adding something like this css on the close button... top: -2px;
right: -10px;
(same empty div header, different css:) .pf-c-popover__content { padding: 2rem; } (but this one still doesn't look quite right) Cc @sbuenafe-rh WDYT? :) |
… place title text under it instead
So I removed the title and fixed the layout in helper. I hope it is all, Im starting to get lost in so much issues in one PR :-) Maybe I should divide this kind of problems in two PRs in future. |
5bf367a
to
18ada81
Compare
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.
LGTM, I agee all the points are fixed now 👍
And we can talk about the proper way to solve all the other helper text paddings on the next UX meeting, the header you added works correctly here :)
From Issue AAH-824:
Resize modal to standard (shorter width)
Remove "please, provide a namespace" text under "name" field
Move popover question mark (input group) to form (next to field label)
Reword "name" field alert message from "Name can only contain [A-Za-z0-9_]" to "Name can only contain letters and numbers"
Remove popover extra right padding
Change "namespace owners" select prompt from "find a group" to "select a group", let selected groups appear in field as chips
Add "Select namespace owner permissions" title above permissions section
Completed: 1, 2, 4, 6 (partialy), 7
I was not sure what 3, 5 and part of 6 ment to be, maybe it is already corrected.