Skip to content

How to change default Google icon with custom svg? #421

Closed Answered by add-to-calendar
Hassam790 asked this question in Q&A
Discussion options

You must be logged in to vote
  1. You should add the "hideIconButton" option. This removes the default icons.
  2. You can add your own content in front of the label via your custom css like the following (ask Google for svg examples):
#atcb-btn-1::before {
    content: 'X';
    margin-right: 8px;
}

Mind the identifier! The one in the example above is auto-generated. You can manually define this with the "identifier" option like this: identifier="my-custom-id".

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by add-to-calendar
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants