Skip to content

Commit

Permalink
fix: fixed design tokens build
Browse files Browse the repository at this point in the history
  • Loading branch information
PKulkoRaccoonGang committed Jan 28, 2025
1 parent 14511c3 commit 2199d5d
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion bin/paragon-scripts.js
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ const COMMANDS = {
sendTrackInfo('openedx.paragon.cli-command.used', { command, status: 'success' });
} catch (error) {
// eslint-disable-next-line no-console
console.error(chalk.red.bold('An error occurred:', error.message));
console.error(chalk.red.bold('An error occurred:', error));
sendTrackInfo('openedx.paragon.cli-command.used', { command, status: 'error', errorMsg: error.message });
process.exit(1);
}
Expand Down
2 changes: 1 addition & 1 deletion styles/css/core/variables.css
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
*/

:root {
--pgn-print-page-size: a3;
--pgn-theme-interval: 8%;
--pgn-other-form-control-custom-file-content: Browse;
--pgn-other-form-control-custom-file-lang: en;
Expand Down Expand Up @@ -102,7 +103,6 @@
--pgn-transition-carousel-base-property: transform;
--pgn-transition-btn: none;
--pgn-transition-badge: none;
--pgn-typography-print-page-size: a3;
--pgn-typography-line-height-display-mobile: 3.5rem; /* Mobile display line height. */
--pgn-typography-line-height-display-base: 1; /* Standard display line height. */
--pgn-typography-line-height-micro: 0.938rem; /* Micro utils line height. */
Expand Down
2 changes: 1 addition & 1 deletion styles/scss/core/_variables.scss
Original file line number Diff line number Diff line change
Expand Up @@ -851,7 +851,7 @@ $user-selects: all, auto, none !default;

// Printing

$print-page-size: var(--pgn-typography-print-page-size) !default;
$print-page-size: var(--pgn-print-page-size) !default;
$print-body-min-width: map.get($grid-breakpoints, "lg") !default;

// List group
Expand Down
5 changes: 5 additions & 0 deletions tokens/src/core/global/other.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,10 @@
"$type": "percentage",
"source": "$theme-color-interval",
"$value": "8%"
},
"print-page-size": {
"source": "$print-page-size",
"$value": "a3",
"$type": "text"
}
}
5 changes: 0 additions & 5 deletions tokens/src/core/global/typography.json
Original file line number Diff line number Diff line change
Expand Up @@ -276,11 +276,6 @@
"$description": "Mobile display line height."
}
}
},
"print-page-size": {
"source": "$print-page-size",
"$value": "a3",
"$type": "dimension"
}
}
}

0 comments on commit 2199d5d

Please sign in to comment.