Skip to content

Commit

Permalink
fix(styles): show the horizon icons [ci visual]
Browse files Browse the repository at this point in the history
  • Loading branch information
droshev committed Oct 25, 2023
1 parent fffb40f commit 5448694
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 22 deletions.
2 changes: 1 addition & 1 deletion .storybook/preview-head.html
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@

@font-face {
font-family: 'SAP-icons-TNT';
src: url('theming-base-content/content/Base/baseLib/baseTheme/fonts/SAP-icons-TNT.woff') format('woff');
src: url('theming-base-content/content/Base/baseLib/sap_horizon/fonts/SAP-icons-TNT.woff') format('woff');
font-weight: normal;
font-style: normal;
}
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ list of icon class names. See Project Configuration below for instructions to in
### Project Configuration

This project does not contain fonts and icons - they must be added to your project separately. Download the @sap-theming
library. After adding fonts and icons to your project, include the following in your CSS:
library. After adding fonts and icons to your project, include the following in your CSS(The icon font files have different design for Fiori 3 themes and they can be found in the folder `@sap-theming/theming-base-content/content/Base/baseLib/baseTheme/fonts/`):

```css
@font-face {
Expand Down Expand Up @@ -133,7 +133,7 @@ library. After adding fonts and icons to your project, include the following in

@font-face {
font-family: 'SAP-icons-TNT';
src: url('~@sap-theming/theming-base-content/content/Base/baseLib/baseTheme/fonts/SAP-icons-TNT.woff') format('woff');
src: url('~@sap-theming/theming-base-content/content/Base/baseLib/sap_horizon/fonts/SAP-icons-TNT.woff') format('woff');
font-weight: normal;
font-style: normal;
}
Expand Down
2 changes: 1 addition & 1 deletion packages/styles/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ library. After adding fonts and icons to your project, include the following in

@font-face {
font-family: 'SAP-icons-TNT';
src: url('~@sap-theming/theming-base-content/content/Base/baseLib/baseTheme/fonts/SAP-icons-TNT.woff') format('woff');
src: url('~@sap-theming/theming-base-content/content/Base/baseLib/sap_horizon/fonts/SAP-icons-TNT.woff') format('woff');
font-weight: normal;
font-style: normal;
}
Expand Down
18 changes: 0 additions & 18 deletions packages/styles/src/fonts/sap_fonts.scss
Original file line number Diff line number Diff line change
Expand Up @@ -27,21 +27,3 @@
url('@sap-theming/theming-base-content/content/Base/baseLib/baseTheme/fonts/72-SemiboldDuplex.woff')
format('woff');
}

@font-face {
font-family: 'BusinessSuiteInAppSymbols';
src:
url('@sap-theming/theming-base-content/content/Base/baseLib/baseTheme/fonts/BusinessSuiteInAppSymbols.woff')
format('woff');
font-weight: normal;
font-style: normal;
}

@font-face {
font-family: 'SAP-icons-TNT';
src:
url('@sap-theming/theming-base-content/content/Base/baseLib/baseTheme/fonts/SAP-icons-TNT.woff')
format('woff');
font-weight: normal;
font-style: normal;
}
9 changes: 9 additions & 0 deletions packages/styles/src/fonts/sap_horizon_fonts.scss
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,12 @@
font-weight: normal;
font-style: normal;
}

@font-face {
font-family: 'SAP-icons-TNT';
src:
url('@sap-theming/theming-base-content/content/Base/baseLib/horizon/fonts/SAP-icons-TNT.woff')
format('woff');
font-weight: normal;
font-style: normal;
}

0 comments on commit 5448694

Please sign in to comment.