Design Property duplication issue

0
  Hi all, I'm trying to overwrite the "DynamicText" Font weight design properties, but instead of overwriting the old definition I'm seeing the old and the new one. Any tips? My current code trying overwrite atlas definitions:   { "name": "Font Weight2", "oldNames": ["Font Weight, Weight"], "type": "ToggleButtonGroup", "description": "Emphasize the text with a heavier or lighter font weight", "options": [ { "name": "Regular", "oldNames": ["Light"], "class": "font-weight-regular" }, { "name": "Medium", "oldNames": ["Normal"], "class": "font-weight-medium" }, { "name": "Semibold", "class": "font-weight-semibold" }, { "name": "Bold", "class": "font-weight-bold" } ] } this is the result:  
asked
1 answers
0

Hi Miguel,

 

I think You’re not actually overriding the existing DynamicText → Font Weight property

you’re adding a new one, which is why both appear in the UI (as shown in your screenshot).

If the name does not exactly match the original property name, Atlas treats it as a new property, even if  old names are provided.

 

You must reuse the exact original name and fully redefine it.

 

{  "name": "Font Weight",  "type": "ToggleButtonGroup",  "description": "Emphasize the text with a heavier or lighter font weight",  "options": [    {      "name": "Regular",      "class": "font-weight-regular"    },    {      "name": "Medium",      "class": "font-weight-medium"    },    {      "name": "Semibold",      "class": "font-weight-semibold"    },    {      "name": "Bold",      "class": "font-weight-bold"    }  ]}

 

{
  "name": "Font Weight",
  "type": "ToggleButtonGroup",
  "description": "Emphasize the text with a heavier or lighter font weight",
  "options": [
    {
      "name": "Regular",
      "class": "font-weight-regular"
    },
    {
      "name": "Medium",
      "class": "font-weight-medium"
    },
    {
      "name": "Semibold",
      "class": "font-weight-semibold"
    },
    {
      "name": "Bold",
      "class": "font-weight-bold"
    }
  ]
}

After this:

  • The original Weight / Light / Normal control disappears

  • Your new definition replaces it entirely

  • No duplicate UI entry

Key takeaways (TL;DR)

  • Overrides are exact-name matches only

  • Changing name = creating a new property

  • oldNames don’t override built-in Atlas properties

  • You must redefine the property completely to replace it

 

Let me know if this works for you.

answered