Giter Club home page Giter Club logo

theming-base-content's Issues

The issue about upgrading the version from 11.1.34 to 11.1.40

The clean-css package is utilized in our project. When this package(theming-base-content) is upgraded to 11.1.40.
During the building process, there will be an issue:
Angular: 11.2.14
clean-css: 5.3.1

[exec] -- PLUGIN_ERROR-angular --
[exec] TypeError: Cannot read properties of undefined (reading 'push')
[exec] at intoTokens (..../.pnpm/[email protected]/node_modules/clean-css/lib/tokenizer/tokenize.js:434:17)

Could you please help with this?

bug(horizon): radio button border-style resolved to none

Description

The next variables resolved to none in horizon evening/morning themes:

  • sapField_WarningBorderStyle
  • sapField_InvalidBorderStyle
  • sapField_SuccessBorderStyle
  • sapField_InformationBorderStyle

That leads to the missing border of the radio button circle

image

Version

11.1.38

Typo in README.md

There is a double , in the Description section:

uses the exposed parameters,, it also benefits from the fact that

Should be:

uses the exposed parameters, it also benefits from the fact that

Corrupt 11.1.48 tarball

Hi Team,

We recently tried to upgrade to @sap-theming/[email protected] and noticed the following error during the build. We ended up using the previous patch version 11.1.47 instead in order to unblock our pipeline. Is it possible that the 11.1.48 tarball file is really corrupt?

16:04:32 INFO - npm WARN tarball tarball data for @sap-theming/[email protected] (sha512-Q2rMoEN+6tjnfbhlQ2a+WybhAWj/0RuhWUb3vSzI/iwCkGPGtz3k8HhtU1jtmAPjRCiJQSEmiE2HMv3Av/7Y7Q==) seems to be corrupted. Trying one more time.

16:04:41 INFO - npm WARN tarball tarball data for @sap-theming/[email protected] (sha512-Q2rMoEN+6tjnfbhlQ2a+WybhAWj/0RuhWUb3vSzI/iwCkGPGtz3k8HhtU1jtmAPjRCiJQSEmiE2HMv3Av/7Y7Q==) seems to be corrupted. Trying one more time.

16:04:52 INFO -

16:04:52 ERROR - code EINTEGRITY

16:04:52 ERROR - Verification failed while extracting @sap-theming/[email protected]:

16:04:52 ERROR - Verification failed while extracting @sap-theming/[email protected]:

16:04:52 ERROR - sha512-Q2rMoEN+6tjnfbhlQ2a+WybhAWj/0RuhWUb3vSzI/iwCkGPGtz3k8HhtU1jtmAPjRCiJQSEmiE2HMv3Av/7Y7Q== integrity checksum failed when using sha512: wanted sha512-Q2rMoEN+6tjnfbhlQ2a+WybhAWj/0RuhWUb3vSzI/iwCkGPGtz3k8HhtU1jtmAPjRCiJQSEmiE2HMv3Av/7Y7Q== but got sha512-3B+tB85OXzpCk26WOkeZBnP3c4fEwAR0giKC4UBYYOmokDxSMXn3tfiCkg6Y06I2C7aOyQDVB7Uns6arKmaZWQ==. (15471810 bytes)

CSS variable files should differentiate between variables and variables that load assets

If we attempt to use a css_variables.css file (any theme) within a different library, we are getting a huge bundle size (MB instead of KB) when bundling. It is seeing the --sapFont* variables which have a url for the actual font asset and it's including all the font files in the bundle.

Our libraries will be pursuing a path to make fonts and icons globally available on the page, but to support that, we need a "minimal" CSS variables file that will not load any additional assets.

If CSS variables are needed for fonts, is there a way to break those in a separate file and then use Less importing to build them up? Maybe something like:

css_variables.less

@import "../baseTheme/css_variables.less";
@import "base-colors.less";
@import "base-metrics.less";
@import "base-fonts.less";

css_variables_min.less

@import "../baseTheme/css_variables.less";
@import "base-colors.less";
@import "base-metrics.less";

And then consumers that are handling fonts globally can just import css_variables_min.css.

Invalid css in css_variables.css

Hi colleagues,

in my opinion, the CSS Variable --sapThemeMetaData-Base-baseLib in the css_variables.css is invalid in all themes (I guess there are some quotes missing around the json data):

:root{--sapThemeMetaData-Base-baseLib:{"Path": "Base.baseLib.sap_fiori_3.css_variables", "PathPattern": "/%frameworkId%/%libId%/%themeId%/%fileId%.css", "Extends": ["sap_base_fiori","baseTheme"], "Tags": ["Fiori_3","LightColorScheme"], "FallbackThemeId": "sap_belize", "Engine": {"Name": "theming-engine", "Version": "1.69.2"}, "Version": { "Build": "11.1.37.20220329125434", "Source": "11.1.37"}};}

The W3C CSS Validator Service is also reporting errors for this file.

This is e.g. causing errors in the production build of create-react-app when trying to import the CSS Variable files directly.

cc @vladitasev

please use line breaks in supplied source files

Many of the supplied source files have line breaks removed, making them impossible to parse. See:

Can you provide them as readable files and let the consumer tooling (webpack etc) handle minification, or perhaps provide both compressed and uncompressed variations?

bug: loading placeholders wrong colors

Description

Wrong colors of loading placeholders.

Fiori, Horizon (default light themes)

--sapContent_Placeholderloading_Background
In wiki: #E0E0E0
In library: #CCCCCC

--sapContent_Placeholderloading_Gradient
In wiki: linear-gradient(to right, #e0e0e0 0%, #e0e0e0 35%, #d3d3d3 50%, #e0e0e0 65%, #e0e0e0 100%)
in library: linear-gradient(to right, #cccccc 0%, #cccccc 20%, #999999 50%, #cccccc 80%, #cccccc 100%)

bug: emphasized button color in evening horizon

The current color defined for emphasized button in evening horizon theme is #eaecee.

This color produces contrast ratio of 3.85:1 which is not WCAG compliant.

https://github.com/SAP/theming-base-content/blob/master/content/Base/baseLib/sap_horizon_dark/css_variables.css

The expected color is #ffffff as described in the official Fiori specification.

https://wiki.one.int.sap/wiki/pages/viewpage.action?pageId=2650676574#id-14Button(Horizon)-EmphasizedButton

bug: --sapFontHeaderFamily in High Contrast White theme seems to be incorrect

In css_variables.css from sap_horizon_hcw, the --sapFontHeaderFamily variable is defined as follows:
--sapFontHeaderFamily: "72", "72full", Arial, Helvetica, sans-serif;

While in sap_horizon_hcb, as well as sap_horizon and sap_horizon_dark, it is defined like this:
--sapFontHeaderFamily: "72-Bold", "72-Boldfull", "72", "72full", Arial, Helvetica, sans-serif;
Which looks like the correct definition.

Version: 11.15.0

bug: emphasized button color in evening horizon

Dear maintainers,

for Evening Horizon, the background color of the emphasised button is set to the SAP brand color.
I do believe this is a bug and that the color should actually be equal to @sapHighlightColor or @sapPrimary2 (these are identical - I'm not too familiar with the entire design system; what matters to me is that it ends up being #4db1ff instead of #0070f2).

I also do believe that this bug wasn't spotted previously because @sapHighlightColor and @sapBrandColor are identical for Morning Horizon - but they aren't for Evening Horizon.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.