Skip to content

Commit

Permalink
docs: 📝 Edit single button color
Browse files Browse the repository at this point in the history
  • Loading branch information
baptisteArno committed May 23, 2022
1 parent f07db7f commit c57ed07
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 0 deletions.
18 changes: 18 additions & 0 deletions apps/docs/docs/editor/theme.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,21 @@ For example, if I want my buttons to be more rounded, and have a fancy gradient
src="/img/theme/fancy-button.png"
alt="Fancy button"
/>

### Customize a single button color

Thanks to custom CSS, you can customize the color of a single button for example by using the `data-itemid` attribute:

```css
[data-itemid='cl3iunm4p000f2e6gfr8cznnn'] {
background-color: gray;
border-color: gray;
}
```

To find the item ID of a button, right-click on the button and inspect the element:

<img
src="/img/theme/button-inspect.png"
alt="Button inspect"
/>
Binary file added apps/docs/static/img/theme/button-inspect.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added apps/docs/static/img/theme/edit-single-button.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ export const ChoiceForm = ({ step, onSubmit }: ChoiceFormProps) => {
: 'selectable')
}
data-testid="button"
data-itemid={item.id}
>
{item.content}
</button>
Expand Down

5 comments on commit c57ed07

@vercel
Copy link

@vercel vercel bot commented on c57ed07 May 23, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@vercel
Copy link

@vercel vercel bot commented on c57ed07 May 23, 2022

@vercel
Copy link

@vercel vercel bot commented on c57ed07 May 23, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@vercel
Copy link

@vercel vercel bot commented on c57ed07 May 23, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

docs – ./apps/docs

docs.typebot.io
docs-typebot-io.vercel.app
docs-git-main-typebot-io.vercel.app

@vercel
Copy link

@vercel vercel bot commented on c57ed07 May 23, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

builder-v2 – ./apps/builder

builder-v2-git-main-typebot-io.vercel.app
builder-v2-typebot-io.vercel.app
app.typebot.io

Please sign in to comment.