Skip to content

Commit

Permalink
refactor: corrected ratio tokens type and renamed edx theme
Browse files Browse the repository at this point in the history
  • Loading branch information
PKulkoRaccoonGang committed Nov 18, 2024
1 parent 0ea4cb8 commit bc91888
Show file tree
Hide file tree
Showing 14 changed files with 14 additions and 14 deletions.
2 changes: 1 addition & 1 deletion tokens/src/core/components/Dropdown.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
}
},
"elevation": {
"$type": "ratio",
"$type": "number",
"dropdown": {
"zindex": { "source": "$zindex-dropdown", "$value": "1000" }
}
Expand Down
2 changes: 1 addition & 1 deletion tokens/src/core/components/Modal.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"elevation": {
"$type": "ratio",
"$type": "number",
"modal": {
"backdrop-zindex": { "source": "$zindex-modal-backdrop", "$value": "1040" },
"zindex": { "source": "$zindex-modal", "$value": "1050" }
Expand Down
2 changes: 1 addition & 1 deletion tokens/src/core/components/Popover.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
}
},
"elevation": {
"$type": "ratio",
"$type": "number",
"popover": {
"zindex": { "source": "$zindex-popover", "$value": "1060" }
}
Expand Down
2 changes: 1 addition & 1 deletion tokens/src/core/components/ProductTour.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
}
},
"elevation": {
"$type": "ratio",
"$type": "number",
"product-tour": {
"checkpoint": {
"zindex": { "source": "$checkpoint-z-index", "$value": "1060" }
Expand Down
2 changes: 1 addition & 1 deletion tokens/src/core/components/Sheet.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"elevation": {
"$type": "ratio",
"$type": "number",
"sheet": {
"zindex": {
"backdrop": { "source": "$zindex-sheet-backdrop", "$value": "1031" },
Expand Down
2 changes: 1 addition & 1 deletion tokens/src/core/components/Tooltip.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
}
},
"elevation": {
"$type": "ratio",
"$type": "number",
"tooltip": {
"zindex": { "source": "$zindex-tooltip", "$value": "1070" }
}
Expand Down
2 changes: 1 addition & 1 deletion tokens/src/core/global/elevation.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"elevation": {
"$type": "ratio",
"$type": "number",
"zindex": {
"0": {
"$value": 0,
Expand Down
2 changes: 1 addition & 1 deletion tokens/src/themes/light/components/Button/core.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
}
},
"other": {
"$type": "ratio",
"$type": "number",
"btn": {
"disabled-opacity": { "source": "$btn-disabled-opacity", "$value": ".65" }
}
Expand Down
2 changes: 1 addition & 1 deletion tokens/src/themes/light/components/Carousel.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
}
},
"other": {
"$type": "ratio",
"$type": "number",
"carousel": {
"control": {
"opacity": {
Expand Down
2 changes: 1 addition & 1 deletion tokens/src/themes/light/components/Chip.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
}
},
"other": {
"$type": "ratio",
"$type": "number",
"chip": {
"opacity-disabled": { "source": "$chip-disable-opacity", "$value": ".3" }
}
Expand Down
2 changes: 1 addition & 1 deletion tokens/src/themes/light/components/Form/other.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"other": {
"form": {
"$type": "ratio",
"$type": "number",
"feedback": {
"tooltip-opacity": {
"source": "$form-feedback-tooltip-opacity",
Expand Down
2 changes: 1 addition & 1 deletion tokens/src/themes/light/components/SearchField.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
}
},
"other": {
"$type": "ratio",
"$type": "number",
"search-field": {
"disabled-opacity": { "source": "$search-disabled-opacity", "$value": ".3" }
}
Expand Down
2 changes: 1 addition & 1 deletion tokens/src/themes/light/components/Tooltip.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
}
},
"other": {
"$type": "ratio",
"$type": "number",
"tooltip": {
"opacity": { "source": "$tooltip-opacity", "$value": "1" }
}
Expand Down
2 changes: 1 addition & 1 deletion www/theme-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ const THEMES = [
},
{
id: 'edxorg',
label: 'edX',
label: 'edX.org',
stylesheet: 'edxorg-theme',
pathToVariables: '@edx/brand-edx.org/paragon/_variables.scss',
},
Expand Down

0 comments on commit bc91888

Please sign in to comment.