@@ -121,8 +121,8 @@ const TipTapEditor = forwardRef<EditorRef, TipTapProps>(
121
121
< Button
122
122
variant = "ghost"
123
123
onClick = { ( ) => editor . chain ( ) . focus ( ) . toggleBold ( ) . run ( ) }
124
- className = { `p-2 rounded ${
125
- editor . isActive ( "bold" ) ? "bg-gray-200 " : ""
124
+ className = { `p-2 mr-0.5 rounded ${
125
+ editor . isActive ( "bold" ) ? "button-active " : ""
126
126
} `}
127
127
title = "Bold (Ctrl+B)"
128
128
>
@@ -133,8 +133,8 @@ const TipTapEditor = forwardRef<EditorRef, TipTapProps>(
133
133
< Button
134
134
variant = "ghost"
135
135
onClick = { ( ) => editor . chain ( ) . focus ( ) . toggleItalic ( ) . run ( ) }
136
- className = { `p-2 rounded ${
137
- editor . isActive ( "italic" ) ? "bg-gray-200 " : ""
136
+ className = { `p-2 mr-0.5 rounded ${
137
+ editor . isActive ( "italic" ) ? "button-active " : ""
138
138
} `}
139
139
title = "Italic (Ctrl+I)"
140
140
>
@@ -145,8 +145,8 @@ const TipTapEditor = forwardRef<EditorRef, TipTapProps>(
145
145
< Button
146
146
variant = "ghost"
147
147
onClick = { ( ) => editor . chain ( ) . focus ( ) . toggleUnderline ( ) . run ( ) }
148
- className = { `p-2 rounded ${
149
- editor . isActive ( "underline" ) ? "bg-gray-200 " : ""
148
+ className = { `p-2 mr-0.5 rounded ${
149
+ editor . isActive ( "underline" ) ? "button-active " : ""
150
150
} `}
151
151
title = "Underline (Ctrl+U)"
152
152
>
@@ -157,9 +157,10 @@ const TipTapEditor = forwardRef<EditorRef, TipTapProps>(
157
157
< Button
158
158
variant = "ghost"
159
159
onClick = { ( ) => editor . chain ( ) . focus ( ) . toggleStrike ( ) . run ( ) }
160
- className = { `p-2 rounded ${
161
- editor . isActive ( "strike" ) ? "bg-gray-200" : ""
162
- } `}
160
+ className = { `p-2 mr-0.5 rounded ${
161
+ editor . isActive ( "strike" ) ? "button-active" : ""
162
+ }
163
+ ` }
163
164
title = "Strike Through"
164
165
>
165
166
< Strikethrough className = "h-4 w-4" />
@@ -169,8 +170,8 @@ const TipTapEditor = forwardRef<EditorRef, TipTapProps>(
169
170
< Button
170
171
variant = "ghost"
171
172
onClick = { ( ) => editor . chain ( ) . focus ( ) . toggleHighlight ( ) . run ( ) }
172
- className = { `p-2 rounded ${
173
- editor . isActive ( "highlight" ) ? "bg-gray-200 " : ""
173
+ className = { `p-2 mr-0.5 rounded ${
174
+ editor . isActive ( "highlight" ) ? "button-active " : ""
174
175
} `}
175
176
title = "Highlight Text"
176
177
>
@@ -183,8 +184,8 @@ const TipTapEditor = forwardRef<EditorRef, TipTapProps>(
183
184
onClick = { ( ) =>
184
185
editor . chain ( ) . focus ( ) . toggleHeading ( { level : 1 } ) . run ( )
185
186
}
186
- className = { `p-2 rounded ${
187
- editor . isActive ( "heading" , { level : 1 } ) ? "bg-gray-200 " : ""
187
+ className = { `p-2 mr-0.5 rounded ${
188
+ editor . isActive ( "heading" , { level : 1 } ) ? "button-active " : ""
188
189
} `}
189
190
title = "Heading1"
190
191
>
@@ -197,8 +198,8 @@ const TipTapEditor = forwardRef<EditorRef, TipTapProps>(
197
198
onClick = { ( ) =>
198
199
editor . chain ( ) . focus ( ) . toggleHeading ( { level : 2 } ) . run ( )
199
200
}
200
- className = { `p-2 rounded ${
201
- editor . isActive ( "heading" , { level : 2 } ) ? "bg-gray-200 " : ""
201
+ className = { `p-2 mr-0.5 rounded ${
202
+ editor . isActive ( "heading" , { level : 2 } ) ? "button-active " : ""
202
203
} `}
203
204
title = "Heading2"
204
205
>
@@ -211,8 +212,8 @@ const TipTapEditor = forwardRef<EditorRef, TipTapProps>(
211
212
onClick = { ( ) =>
212
213
editor . chain ( ) . focus ( ) . toggleHeading ( { level : 3 } ) . run ( )
213
214
}
214
- className = { `p-2 rounded ${
215
- editor . isActive ( "heading" , { level : 3 } ) ? "bg-gray-200 " : ""
215
+ className = { `p-2 mr-0.5 rounded ${
216
+ editor . isActive ( "heading" , { level : 3 } ) ? "button-active " : ""
216
217
} `}
217
218
title = "Heading3"
218
219
>
@@ -223,8 +224,8 @@ const TipTapEditor = forwardRef<EditorRef, TipTapProps>(
223
224
< Button
224
225
variant = "ghost"
225
226
onClick = { ( ) => editor . chain ( ) . focus ( ) . toggleBulletList ( ) . run ( ) }
226
- className = { `p-2 rounded ${
227
- editor . isActive ( "bulletList" ) ? "bg-gray-200 " : ""
227
+ className = { `p-2 mr-0.5 rounded ${
228
+ editor . isActive ( "bulletList" ) ? "button-active " : ""
228
229
} `}
229
230
title = "Bullet List"
230
231
>
@@ -235,8 +236,8 @@ const TipTapEditor = forwardRef<EditorRef, TipTapProps>(
235
236
< Button
236
237
variant = "ghost"
237
238
onClick = { ( ) => editor . chain ( ) . focus ( ) . toggleOrderedList ( ) . run ( ) }
238
- className = { `p-2 rounded ${
239
- editor . isActive ( "orderedList" ) ? "bg-gray-200 " : ""
239
+ className = { `p-2 mr-0.5 rounded ${
240
+ editor . isActive ( "orderedList" ) ? "button-active " : ""
240
241
} `}
241
242
title = "Ordered List"
242
243
>
@@ -246,8 +247,8 @@ const TipTapEditor = forwardRef<EditorRef, TipTapProps>(
246
247
< Button
247
248
variant = "ghost"
248
249
onClick = { ( ) => editor . chain ( ) . focus ( ) . toggleCodeBlock ( ) . run ( ) }
249
- className = { `p-2 rounded ${
250
- editor . isActive ( "codeBlock" ) ? "is -active" : ""
250
+ className = { `p-2 mr-0.5 rounded ${
251
+ editor . isActive ( "codeBlock" ) ? "button -active" : ""
251
252
} `}
252
253
>
253
254
< Braces className = "h-4 w-4" />
0 commit comments