Skip to content

Commit

Permalink
fix: add delta theming for Feed Input (#2016)
Browse files Browse the repository at this point in the history
  • Loading branch information
InnaAtanasova committed Jan 8, 2021
1 parent 26076eb commit d949073
Show file tree
Hide file tree
Showing 6 changed files with 19 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/feed-input.scss
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,10 @@ $block: #{$fd-namespace}-feed-input;
max-height: $fd-feed-input-max-height;
margin: 0;
padding: 0.3125rem 0.5rem;

&::placeholder {
font-style: var(--fdFeed_Input_Placeholder_Font_Style);
}
}

// It's needed to have stronger selector to override fd-button styles
Expand Down
3 changes: 3 additions & 0 deletions src/theming/sap_fiori_3.scss
Original file line number Diff line number Diff line change
Expand Up @@ -184,4 +184,7 @@
--fdMessage_Box_Success_Box_Shadow: inset 0 -0.0625rem var(--sapSuccessBorderColor), var(--sapContent_HeaderShadow);
--fdMessage_Box_Warning_Box_Shadow: inset 0 -0.0625rem var(--sapWarningBorderColor), var(--sapContent_HeaderShadow);
--fdMessage_Box_Information_Box_Shadow: inset 0 -0.0625rem var(--sapInformationBorderColor), var(--sapContent_HeaderShadow);

/* Feed Input */
--fdFeed_Input_Placeholder_Font_Style: italic;
}
3 changes: 3 additions & 0 deletions src/theming/sap_fiori_3_dark.scss
Original file line number Diff line number Diff line change
Expand Up @@ -183,4 +183,7 @@
--fdMessage_Box_Success_Box_Shadow: inset 0 -0.0625rem var(--sapSuccessBorderColor), var(--sapContent_HeaderShadow);
--fdMessage_Box_Warning_Box_Shadow: inset 0 -0.0625rem var(--sapWarningBorderColor), var(--sapContent_HeaderShadow);
--fdMessage_Box_Information_Box_Shadow: inset 0 -0.0625rem var(--sapInformationBorderColor), var(--sapContent_HeaderShadow);

/* Feed Input */
--fdFeed_Input_Placeholder_Font_Style: italic;
}
3 changes: 3 additions & 0 deletions src/theming/sap_fiori_3_hcb.scss
Original file line number Diff line number Diff line change
Expand Up @@ -183,4 +183,7 @@
--fdMessage_Box_Success_Box_Shadow: inset 0 -0.125rem var(--sapSuccessBorderColor);
--fdMessage_Box_Warning_Box_Shadow: inset 0 -0.125rem var(--sapWarningBorderColor);
--fdMessage_Box_Information_Box_Shadow: inset 0 -0.125rem var(--sapInformationBorderColor);

/* Feed Input */
--fdFeed_Input_Placeholder_Font_Style: normal;
}
3 changes: 3 additions & 0 deletions src/theming/sap_fiori_3_hcw.scss
Original file line number Diff line number Diff line change
Expand Up @@ -183,4 +183,7 @@
--fdMessage_Box_Success_Box_Shadow: inset 0 -0.125rem var(--sapSuccessBorderColor);
--fdMessage_Box_Warning_Box_Shadow: inset 0 -0.125rem var(--sapWarningBorderColor);
--fdMessage_Box_Information_Box_Shadow: inset 0 -0.125rem var(--sapInformationBorderColor);

/* Feed Input */
--fdFeed_Input_Placeholder_Font_Style: normal;
}
3 changes: 3 additions & 0 deletions src/theming/sap_fiori_3_light_dark.scss
Original file line number Diff line number Diff line change
Expand Up @@ -183,4 +183,7 @@
--fdMessage_Box_Success_Box_Shadow: inset 0 -0.0625rem var(--sapSuccessBorderColor), var(--sapContent_HeaderShadow);
--fdMessage_Box_Warning_Box_Shadow: inset 0 -0.0625rem var(--sapWarningBorderColor), var(--sapContent_HeaderShadow);
--fdMessage_Box_Information_Box_Shadow: inset 0 -0.0625rem var(--sapInformationBorderColor), var(--sapContent_HeaderShadow);

/* Feed Input */
--fdFeed_Input_Placeholder_Font_Style: italic;
}

0 comments on commit d949073

Please sign in to comment.