Skip to content

Docs - button api update #3731

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

Merged
merged 1 commit into from
May 14, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
202 changes: 5 additions & 197 deletions src/components/button/button.api.json
Original file line number Diff line number Diff line change
Expand Up @@ -237,89 +237,12 @@
},
{
"type": "section",
"title": "Main Button",
"title": "Button",
"description": ""
},
{
"type": "table",
"columns": ["Property", "Component"],
"items": [
{
"title": "Primary",
"description": "",
"content": [
{
"value": "https://wixmp-1d257fba8470f1b562a0f5f2.wixmp.com/mads-docs-assets/assets/Components Docs/Button/button_overview_priority_primary.png"
}
]
},
{
"title": "Secondary",
"description": "",
"content": [
{
"value": "https://wixmp-1d257fba8470f1b562a0f5f2.wixmp.com/mads-docs-assets/assets/Components Docs/Button/button_overview_priority_secondary.png"
}
]
}
],
"title": "",
"description": "",
"name": "Priority"
},
{
"type": "table",
"columns": ["Property", "Primary", "Secondary"],
"items": [
{
"title": "Main",
"description": "The default button style, used for most actions.",
"content": [
{
"value": "https://wixmp-1d257fba8470f1b562a0f5f2.wixmp.com/mads-docs-assets/assets/Components Docs/Button/button_overview_presets_mainPrimary.png"
},
{
"value": "https://wixmp-1d257fba8470f1b562a0f5f2.wixmp.com/mads-docs-assets/assets/Components Docs/Button/button_overview_presets_mainSecondary.png"
}
]
},
{
"title": "Inverted",
"description": "Used on top of images and dark background. ",
"content": [
{
"value": "https://wixmp-1d257fba8470f1b562a0f5f2.wixmp.com/mads-docs-assets/assets/Components Docs/Button/button_overview_presets_invertedPrimary.png"
},
{
"value": "https://wixmp-1d257fba8470f1b562a0f5f2.wixmp.com/mads-docs-assets/assets/Components Docs/Button/button_overview_presets_invertedSecondary.png"
}
]
},
{
"title": "Destructive",
"description": "Used for destructive actions such as Delete and Log out. ",
"content": [
{
"value": "https://wixmp-1d257fba8470f1b562a0f5f2.wixmp.com/mads-docs-assets/assets/Components Docs/Button/button_overview_presets_distructivePrimary.png"
},
{
"value": "https://wixmp-1d257fba8470f1b562a0f5f2.wixmp.com/mads-docs-assets/assets/Components Docs/Button/button_overview_presets_distructiveSecondary.png"
}
]
}
],
"title": "",
"description": "",
"name": "Presets"
},
{
"type": "section",
"title": "States",
"description": ""
},
{
"type": "table",
"columns": ["Property", "Primary", "Secondary"],
"columns": ["Property", "Default", "Outline"],
"items": [
{
"title": "Active",
Expand All @@ -333,18 +256,6 @@
}
]
},
{
"title": "Loading",
"description": "",
"content": [
{
"value": "https://wixmp-1d257fba8470f1b562a0f5f2.wixmp.com/mads-docs-assets/assets/Components Docs/Button/button_overview_states_mainLoadingPrimary.png"
},
{
"value": "https://wixmp-1d257fba8470f1b562a0f5f2.wixmp.com/mads-docs-assets/assets/Components Docs/Button/button_overview_states_mainLoadingSecondary.png"
}
]
},
{
"title": "Disabled",
"description": "",
Expand All @@ -362,51 +273,6 @@
"description": "",
"name": "Main"
},
{
"type": "table",
"columns": ["Property", "Primary", "Secondary"],
"items": [
{
"title": "Active",
"description": "",
"content": [
{
"value": "https://wixmp-1d257fba8470f1b562a0f5f2.wixmp.com/mads-docs-assets/assets/Components Docs/Button/button_overview_states_invertedActivePrimary.png"
},
{
"value": "https://wixmp-1d257fba8470f1b562a0f5f2.wixmp.com/mads-docs-assets/assets/Components Docs/Button/button_overview_states_invertedActiveSecondary.png"
}
]
},
{
"title": "Loading",
"description": "",
"content": [
{
"value": "https://wixmp-1d257fba8470f1b562a0f5f2.wixmp.com/mads-docs-assets/assets/Components Docs/Button/button_overview_states_invertedLoadingPrimary.png"
},
{
"value": "https://wixmp-1d257fba8470f1b562a0f5f2.wixmp.com/mads-docs-assets/assets/Components Docs/Button/button_overview_states_invertedLoadingSecondary.png"
}
]
},
{
"title": "Disabled",
"description": "",
"content": [
{
"value": "https://wixmp-1d257fba8470f1b562a0f5f2.wixmp.com/mads-docs-assets/assets/Components Docs/Button/button_overview_states_invertedDisabledPrimary.png"
},
{
"value": "https://wixmp-1d257fba8470f1b562a0f5f2.wixmp.com/mads-docs-assets/assets/Components Docs/Button/button_overview_states_invertedDisabledSecondary.png"
}
]
}
],
"title": "",
"description": "",
"name": "Inverted"
},
{
"type": "table",
"columns": ["Property", "Component"],
Expand Down Expand Up @@ -478,7 +344,7 @@
"columns": ["Property", "Component"],
"items": [
{
"title": "Primary",
"title": "Default",
"description": "",
"content": [
{
Expand All @@ -487,7 +353,7 @@
]
},
{
"title": "Secondary",
"title": "Outline",
"description": "",
"content": [
{
Expand All @@ -499,45 +365,14 @@
"title": "Priority",
"description": ""
},
{
"type": "table",
"columns": ["Property", "Primary", "Secondary"],
"items": [
{
"title": "Main",
"description": "The default button style, used for most actions.",
"content": [
{
"value": "https://wixmp-1d257fba8470f1b562a0f5f2.wixmp.com/mads-docs-assets/assets/Components Docs/Button/button_overview_iconButton_presets_mainPrimary.png"
},
{
"value": "https://wixmp-1d257fba8470f1b562a0f5f2.wixmp.com/mads-docs-assets/assets/Components Docs/Button/button_overview_iconButton_presets_mainSecondary.png"
}
]
},
{
"title": "Inverted",
"description": "Used on top of images and dark background. ",
"content": [
{
"value": "https://wixmp-1d257fba8470f1b562a0f5f2.wixmp.com/mads-docs-assets/assets/Components Docs/Button/button_overview_iconButton_presets_invertedPrimary.png"
},
{
"value": "https://wixmp-1d257fba8470f1b562a0f5f2.wixmp.com/mads-docs-assets/assets/Components Docs/Button/button_overview_iconButton_presets_invertedSecondary.png"
}
]
}
],
"title": "Presets"
},
{
"type": "section",
"title": "States",
"description": ""
},
{
"type": "table",
"columns": ["Property", "Primary", "Secondary"],
"columns": ["Property", "Default", "Outline"],
"items": [
{
"title": "Active",
Expand Down Expand Up @@ -596,15 +431,6 @@
}
]
},
{
"title": "Destructive",
"description": "text style: bodyBold, $textDangerLight",
"content": [
{
"value": "https://wixmp-1d257fba8470f1b562a0f5f2.wixmp.com/mads-docs-assets/assets/Components Docs/Button/button_overview_linkButton_presets_distructive.png"
}
]
},
{
"title": "Disabled",
"description": "text style: bodyBold, $textDisabled",
Expand Down Expand Up @@ -691,24 +517,6 @@
"value": "https://wixmp-1d257fba8470f1b562a0f5f2.wixmp.com/mads-docs-assets/assets/Components Docs/Button/button_overview_fullWidth_presets_main.png"
}
]
},
{
"title": "Destructive ",
"description": "",
"content": [
{
"value": "https://wixmp-1d257fba8470f1b562a0f5f2.wixmp.com/mads-docs-assets/assets/Components Docs/Button/button_overview_fullWidth_presets_destructive.png"
}
]
},
{
"title": "Premium",
"description": "",
"content": [
{
"value": "https://wixmp-1d257fba8470f1b562a0f5f2.wixmp.com/mads-docs-assets/assets/Components Docs/Button/button_overview_fullWidth_presets_premium.png"
}
]
}
],
"title": "Presets",
Expand Down