scottyaslan commented on a change in pull request #16: NIFI-6247 - FDS theming 
updates for input elements.
URL: https://github.com/apache/nifi-fds/pull/16#discussion_r281269083
 
 

 ##########
 File path: src/platform/core/common/styles/_inputs.scss
 ##########
 @@ -16,94 +16,101 @@
 */
 
 /* Inputs */
-
-body[fds] .mat-input-container {
-  min-width: 200px;
-  width: 100%;
-}
-
-body[fds] .mat-input-wrapper {
-  margin: 0;
-  padding-bottom: 0;
-}
-
-body[fds] input.mat-input-element, body[fds] textarea.mat-input-element {
-  border-radius: 2px;
-  color: $grey2;
-  border: 1px solid $grey8;
-  height: 32px;
-  padding: 0px 10px;
-  width: calc(100% - 20px);
-}
-
-body[fds] textarea.mat-input-element {
-  padding: 10px 10px;
-}
-
-body[fds] input.mat-input-element[disabled], body[fds] 
textarea.mat-input-element[disabled] {
-  background: $grey9;
-  color: $grey10;
-  border: 1px solid $grey9;
-}
-
-body[fds] .mat-input-subscript-wrapper {
-  margin-top: 18px;
-  width: calc(100% - 23px);
-}
-
-body[fds] input.mat-input-element:focus, body[fds] 
textarea.mat-input-element:focus {
-  border-color: $blue-grey1;
-}
-
-body[fds] .mat-input-underline {
-  display: none;
-}
-
-body[fds] .mat-input-placeholder {
-  font-size: 14px;
-  color: $grey3;
-  font-weight: 300;
-}
-
-body[fds] .mat-input-placeholder {
-  top: 27px;
-  left: 10px;
-  white-space: nowrap;
-  overflow: hidden;
-  text-overflow: ellipsis;
-  width: calc(100% - 44px);
-}
-
-body[fds] mat-input-container.mat-focused .mat-input-placeholder {
-  transform: translateY(-26px) translateX(-10px) scale(0.75);
-}
-
-body[fds] .mat-form-field-can-float.mat-form-field-should-float 
.mat-form-field-placeholder {
-  transform: translateY(-26px) translateX(-10px) scale(.75);
-}
-
-body[fds] .mat-form-field-can-float 
.mat-form-field-autofill-control:-webkit-autofill+.mat-form-field-placeholder-wrapper
 .mat-form-field-placeholder {
-  transform: translateY(-26px) translateX(-10px) scale(.75);
-}
-
-body[fds] .input-button {
-  top: 5px;
-  border-left: none !important;
-}
-
-body[fds] .input-button.mat-raised-button[disabled] {
-  opacity: 1;
-}
-
-body[fds] td-chips .mat-input-placeholder-wrapper::after {
-  content: '\f0b0';
-  display: inline-table;
-  font-family: FontAwesome;
-  float: right;
-  margin: 15px 10px 0px 0px;
-  color: $grey3;
-}
-
-body[fds] .mat-hint {
-  color: $grey3;
+@mixin fds-input-element-theme($theme) {
+  $primaryColor: map-get(map-get($theme, primary), 500);
+  $primaryColorHover: map-get(map-get($theme, primary), 100);
+  $accentColor: map-get(map-get($theme, accent), 500);
+  $accentColorHover: map-get(map-get($theme, accent), 100);
+
+  body[fds] .mat-input-container {
+    min-width: 200px;
+    width: 100%;
 
 Review comment:
   Please remove the width: 100%;

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to