Skip to content

Commit

Permalink
馃悰 Fix border color not changing
Browse files Browse the repository at this point in the history
  • Loading branch information
baptisteArno committed Apr 17, 2024
1 parent 40b16ea commit dcd3eaa
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion packages/embeds/js/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@typebot.io/js",
"version": "0.2.73",
"version": "0.2.74",
"description": "Javascript library to display typebots on your website",
"type": "module",
"main": "dist/index.js",
Expand Down
3 changes: 2 additions & 1 deletion packages/embeds/js/src/utils/setCssVariablesValue.ts
Original file line number Diff line number Diff line change
Expand Up @@ -529,13 +529,14 @@ const setInputs = (
: '0'
)

console.log(hexToRgb(inputs?.border?.color ?? '').join(', '))
documentStyle.setProperty(
cssVariableNames.chat.inputs.borderColor,
hexToRgb(inputs?.border?.color ?? '').join(', ')
)

documentStyle.setProperty(
cssVariableNames.chat.inputs.opacity,
cssVariableNames.chat.inputs.borderOpacity,
inputs?.backgroundColor === 'transparent'
? '0'
: isDefined(inputs?.opacity)
Expand Down
2 changes: 1 addition & 1 deletion packages/embeds/nextjs/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@typebot.io/nextjs",
"version": "0.2.73",
"version": "0.2.74",
"description": "Convenient library to display typebots on your Next.js website",
"main": "dist/index.js",
"types": "dist/index.d.ts",
Expand Down
2 changes: 1 addition & 1 deletion packages/embeds/react/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@typebot.io/react",
"version": "0.2.73",
"version": "0.2.74",
"description": "Convenient library to display typebots on your React app",
"main": "dist/index.js",
"types": "dist/index.d.ts",
Expand Down

0 comments on commit dcd3eaa

Please sign in to comment.