-
-
Notifications
You must be signed in to change notification settings - Fork 331
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
[Form] Support inverted transparent textarea #161
[Form] Support inverted transparent textarea #161
Conversation
.ui.form .inverted.segment textarea.transparent { | ||
color: inherit; | ||
} | ||
|
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.
Why so much whitespace?
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 simply adjusted the logic the same as it is for input.
... or maybe i don't get, what you mean? 🤔
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.
if you simply mean the additional empty lines...then i am simply sorry for that, there was no reason for sure
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.
What he probably meant is that you added two empty lines before the selector and four lines after.
Additionally couldn't this be added to this:
Fomantic-UI/src/definitions/collections/form.less
Lines 162 to 173 in 31ed000
/*-------------------- | |
Transparent | |
---------------------*/ | |
.ui.form .field textarea.transparent { | |
border-color: transparent !important; | |
background-color: transparent !important; | |
padding: 0em !important; | |
box-shadow: none !important; | |
border-radius: 0px !important; | |
} |
or to the inverted variation section?
Fomantic-UI/src/definitions/collections/form.less
Lines 714 to 749 in 31ed000
/*-------------------- | |
Inverted Colors | |
---------------------*/ | |
.ui.inverted.form label, | |
.ui.form .inverted.segment label, | |
.ui.form .inverted.segment .ui.checkbox label, | |
.ui.form .inverted.segment .ui.checkbox .box, | |
.ui.inverted.form .ui.checkbox label, | |
.ui.inverted.form .ui.checkbox .box, | |
.ui.inverted.form .inline.fields > label, | |
.ui.inverted.form .inline.fields .field > label, | |
.ui.inverted.form .inline.fields .field > p, | |
.ui.inverted.form .inline.field > label, | |
.ui.inverted.form .inline.field > p { | |
color: @invertedLabelColor; | |
} | |
/* Inverted Field */ | |
.ui.inverted.form input:not([type]), | |
.ui.inverted.form input[type="date"], | |
.ui.inverted.form input[type="datetime-local"], | |
.ui.inverted.form input[type="email"], | |
.ui.inverted.form input[type="number"], | |
.ui.inverted.form input[type="password"], | |
.ui.inverted.form input[type="search"], | |
.ui.inverted.form input[type="tel"], | |
.ui.inverted.form input[type="time"], | |
.ui.inverted.form input[type="text"], | |
.ui.inverted.form input[type="file"], | |
.ui.inverted.form input[type="url"] { | |
background: @invertedInputBackground; | |
border-color: @invertedInputBorderColor; | |
color: @invertedInputColor; | |
box-shadow: @invertedInputBoxShadow; | |
} |
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.
You have 4 blank lines of whitespace added and there isn't any need for it
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.
ok, got it now working in the suggested transparent section also. see latest commit. Sorry for any inconvenience 😉
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.
removed whitespace line now by another commit. 😉
.ui.form .inverted.segment textarea.transparent { | ||
color: inherit; | ||
} | ||
|
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.
if you simply mean the additional empty lines...then i am simply sorry for that, there was no reason for sure
I agree with @ColinFrick you can probably achieve this without making another textarea definition. |
@ColinFrick Thanks, i moved it to a more suitable area, taking care of no extra whitespace now, within the less file as suggested. I'll take care of such things in the future! 😊 |
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 am going to wait until #107 is fixed before merging.
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, but i think that we should squash commits into one, since the purpose of this PR is pretty clear.
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 agree with @prudho
If we ever want to go over to conventional commit messages / automatic release notes, that‘s a requirement anyway.
Description
Support for transparent textarea in an inverted segment or form (only the color needed to be changed)
Related to
#158