Skip to content
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

feat: remove fonts and icons from distribution package #683

Merged
merged 15 commits into from
Mar 2, 2020
Merged

Conversation

jbadan
Copy link
Contributor

@jbadan jbadan commented Feb 20, 2020

Related Issue

Closes SAP/fundamental-styles#

Description

This pr is showing how to remove the fonts and icons from this project, while still having the docs site and testing playground work appropriately.

TO DO:
[x] add a docs page that explains how to configure your own project.
[x] troubleshoot fs.copyFile not working for netlify (but working locally)
[x] troubleshoot why visual regression tests are failing

Why are so many tests updated?

Our tests were relying on our locally copied fonts in fundamental-styles. Now that the fonts are being pulled from sap-themeing, we've got the updated fonts.

Screen Shot 2020-02-24 at 1 09 17 PM
Screen Shot 2020-02-24 at 1 09 08 PM
Screen Shot 2020-02-24 at 1 08 58 PM
Screen Shot 2020-02-24 at 1 08 51 PM

@jbadan jbadan requested a review from a team February 20, 2020 19:19
@netlify
Copy link

netlify bot commented Feb 20, 2020

@netlify
Copy link

netlify bot commented Feb 20, 2020

Deploy preview for fundamental-styles ready!

Built with commit 1739cf2

https://deploy-preview-683--fundamental-styles.netlify.com

@jbadan jbadan added the WIP label Feb 20, 2020
- title: Type
url: /foundation/type.html
output: web

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removed the foundation pages as they are no longer correct (and haven't been for a while)

vertical-align: bottom;
padding: 10px 20px 0;
border-top: solid 1px lightgray;
}
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was related to the foundation pages - only kept what I needed for the font "72" display on "Getting Started"

</div>
<div class="libraries-section__links">
<a class="libraries-section__more" href="{{site.baseurl}}/getting-started.html" target="_blank">Learn More <span class="vh">about Fundamental Library Styles</span></a>
<a class="libraries-section__more" href="{{site.baseurl}}/getting-started.html">Learn More <span class="vh">about Fundamental Library Styles</span></a>
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removed target blank here because it's the same domain - shouldn't open in a new tab.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jbadan this was a requirement actually

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why?


See the [Icon Component]({{site.baseurl}}/components/icon.html) for a list of icon class names. See [Project Configuration](#Project-configuration) below for instructions to include SAP Fiori 3 icons in your project.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I didn't really have a lot to say about icons - is there a public website about fiori 3 icons like there is for fonts?

for file in public/images/*; do cp "$file" dist/images; done
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We shouldn't be publishing these images either, but that's a separate story.

@@ -54,8 +51,6 @@ $block: #{$fd-namespace}-breadcrumb;

display: inline-block;
transition: all $fd-animation--speed ease-in;
font-size: $fd-breadcrumb-font-size;
font-family: $fd-breadcrumb-font-family;
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These are both included in fd-reset() 5 lines up.

color: var(--sapField_TextColor);
background-color: var(--sapField_Background);
box-sizing: border-box;
border-style: solid;
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All already included in fd-reset()

@@ -39,9 +39,6 @@ $block: #{$fd-namespace}-textarea;
@include fd-reset();
@include fd-ellipsis();

font-family: var(--sapFontFamily);
font-size: var(--sapFontSize);
font-weight: normal;
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All already included in fd-reset()

@@ -106,8 +94,6 @@ li {
<div class="" style="flex: 1;">
<h2>Specs</h2>
<ul>
<li><a href="pages/styles">Styles</a></li>
<li><a href="pages/text">Text</a></li>
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These were outdated - removed for cleanup effort.

@jbadan jbadan removed the WIP label Feb 24, 2020
@droshev droshev added the 0.8.0 label Feb 25, 2020
@droshev
Copy link
Contributor

droshev commented Feb 25, 2020

Let's merge once we release 0.7.0

@droshev
Copy link
Contributor

droshev commented Feb 27, 2020

The changes are affecting the font on the documentation pages:
Screen Shot 2020-02-27 at 10 49 23 AM
Screen Shot 2020-02-27 at 10 49 20 AM
Screen Shot 2020-02-27 at 10 49 07 AM
Screen Shot 2020-02-27 at 10 49 02 AM

@droshev droshev self-requested a review February 27, 2020 15:51
Copy link
Contributor

@droshev droshev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The font on the doc pages is affected

@droshev droshev added this to PRs Review in progress in Development via automation Feb 27, 2020
@jbadan
Copy link
Contributor Author

jbadan commented Feb 27, 2020

@droshev I had originally only loaded regular 72 to the docs site. Now added Light and Bold so it looks the same.

@jbadan jbadan requested a review from droshev February 27, 2020 16:45
Copy link
Contributor

@droshev droshev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's go with it

Development automation moved this from PRs Review in progress to PRs Reviewer approved Mar 1, 2020
@jbadan jbadan merged commit d20ef10 into master Mar 2, 2020
Development automation moved this from PRs Reviewer approved to Done Mar 2, 2020
@jbadan jbadan deleted the feat/fonts branch March 2, 2020 16:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Development
  
Done
Development

Successfully merging this pull request may close these issues.

None yet

4 participants