Skip to content

Commit

Permalink
Merge pull request #2490 from SpareBank1/rename-accent-class
Browse files Browse the repository at this point in the history
Oppdater klassenavnet for å skru på accent mode
  • Loading branch information
dagfrode authored Jan 21, 2025
2 parents 54845cf + 88388c4 commit d789b12
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .storybook/preview.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ const preview: Preview = {
)}
{(scheme === 'both' || scheme === 'light') &&
(accent === 'both' || accent === 'accent') && (
<div className="ffe-docs-content-container accent">
<div className="ffe-docs-content-container ffe-accent-mode">
<Story />
</div>
)}
Expand All @@ -77,7 +77,7 @@ const preview: Preview = {
)}
{(scheme === 'both' || scheme === 'dark') &&
(accent === 'both' || accent === 'accent') && (
<div className="ffe-docs-content-container dark-mode regard-color-scheme-preference accent">
<div className="ffe-docs-content-container dark-mode regard-color-scheme-preference ffe-accent-mode">
<Story />
</div>
)}
Expand Down
2 changes: 1 addition & 1 deletion packages/ffe-core/scripts/generate-semantic-colors.js
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ function filePath(filename) {

function generateSemanticColors() {
let cssContent = '// Generated from Figma tokens';
cssContent += `\n\n// Context accent \n.accent {\n${convertContextJsonToCss(filePath(files.contextAccent)).join('\n')}}\n`;
cssContent += `\n\n// Context accent \n.ffe-accent-mode {\n${convertContextJsonToCss(filePath(files.contextAccent)).join('\n')}}\n`;
cssContent += `\n\n// Context \n:root,\n:host {\n${convertContextJsonToCss(filePath(files.context)).join('\n')}}\n`;
cssContent += `\n\n${convertSemanticJsonToCss(filePath(files.semanticLight))}`;
cssContent += `\n\n${convertSemanticJsonToCss(filePath(files.semanticDark), filePath(files.context), filePath(files.contextAccent))}`;
Expand Down

0 comments on commit d789b12

Please sign in to comment.