Skip to content

Commit

Permalink
Merge pull request #35 from open-formulieren/fix/462-refactor-button-…
Browse files Browse the repository at this point in the history
…component

[SDK#462] Refactor button component
  • Loading branch information
sergei-maertens authored Oct 23, 2023
2 parents 53c17f6 + 1dc9dba commit 9bd8f32
Show file tree
Hide file tree
Showing 3 changed files with 59 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -102,3 +102,6 @@ dist

# TernJS port file
.tern-port

# IDE files
.idea/
9 changes: 8 additions & 1 deletion src/community/utrecht/action.tokens.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,14 @@
"cursor": {"value": "pointer"}
},
"disabled": {
"cursor": {"value": "not-allowed"}
"cursor": {
"value": "not-allowed"
}
},
"submit": {
"cursor": {
"value": "pointer"
}
}
}
}
Expand Down
48 changes: 48 additions & 0 deletions src/community/utrecht/button.tokens.json
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,54 @@
"color": {"value": "{of.button.danger.active.fg}"}
}
}
},

"secondary-action": {
"danger": {
"background": {
"color": {
"value": "{of.color.danger}"
}
},
"color": {
"value": "#fce9e8"
}
}
},

"subtle": {
"danger": {
"background": {
"color": {
"value": "{of.color.danger}"
}
},
"hover": {
"background": {
"color": {
"value": "{of.color.bg}"
}
}
},
"active": {
"background": {
"color": {
"value": "#a02017"
}
}
}
}
},

"disabled": {
"background": {
"color": {
"value": "#b0b0b0"
}
},
"color": {
"value": "#ffffff"
}
}
}
}
Expand Down

0 comments on commit 9bd8f32

Please sign in to comment.