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

(HDS-2107) remove normalize, fix styles in new builds #1218

Merged
merged 1 commit into from
Feb 6, 2024

Conversation

mrTuomoK
Copy link
Contributor

@mrTuomoK mrTuomoK commented Jan 29, 2024

  • Remove normalize
  • Add some normalize-styles to Header styles
  • Fix card style compose
  • Remove broken hds-core import in Highlight-component (hds-react)

Description

Fixes the way how hds-core was imported in hds-react -component (Highlight) which broke some build-systems. The correct way is importing the react base.module.css from styles folder (which just imports the hds-core/lib/base.css). For some reason importing the hds-core base.css straight breaks on new build-systems stating it's not ok to bring global css styles. Storybook doesn't nicely cope with the change and needed to add the base.module.css as import in the inde.css currently.

Related Issue

HDS-2107

How Has This Been Tested?

  • Tested with new hds-cra
  • with oncoming hds-vite
  • with nextjs test app
  • Running visual tests locally

Screenshots (if appropriate):

Add to changelog

  • Added needed line to changelog <-- this still needs to be done, should we instruct importing normalize if it's needed?

@mrTuomoK mrTuomoK requested a review from a team January 29, 2024 12:57
@mrTuomoK mrTuomoK force-pushed the HDS-2107-fix-hds-core-importing branch 2 times, most recently from 5ddf060 to 3b639a7 Compare February 1, 2024 09:05
@mrTuomoK mrTuomoK changed the title (HDS-2107) remove normalize, remove hds-react base.css, change all hd… (HDS-2107) remove normalize, fix styles in new builds Feb 2, 2024
@mrTuomoK mrTuomoK force-pushed the HDS-2107-fix-hds-core-importing branch from 5d3845b to fb69dd0 Compare February 2, 2024 10:43
@mrTuomoK mrTuomoK marked this pull request as ready for review February 5, 2024 08:41
Copy link
Contributor

@NikoHelle NikoHelle left a comment

Choose a reason for hiding this comment

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

Excellent job! Few cleaning remarks.

packages/core/src/base.css Outdated Show resolved Hide resolved
packages/hds-js/package.json Outdated Show resolved Hide resolved
packages/react/package.json Outdated Show resolved Hide resolved
… -> base.module.css, add hds-core styles import to storybook, add some normalize styles to Header.module.scss, fix card styles import, update changelog, fix login test with window redirection tracking
@mrTuomoK mrTuomoK force-pushed the HDS-2107-fix-hds-core-importing branch from 32f41bd to 22811b3 Compare February 5, 2024 14:05
@mrTuomoK mrTuomoK merged commit e0daf34 into development Feb 6, 2024
6 checks passed
@mrTuomoK mrTuomoK deleted the HDS-2107-fix-hds-core-importing branch February 6, 2024 06:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants