Skip to content

Commit 3563552

Browse files
committed
fix(toolbar): add [hidden] CSS rule to fix toolbarHiddenButtons option
Fixes #544 The toolbarHiddenButtons configuration option was not working because the [hidden] attribute requires explicit CSS styling. This style was previously provided by Bootstrap, but after removing that dependency in v3.0, buttons remained visible even when configured as hidden. Changes: - Add [hidden] { display: none !important; } to default.scss - Ensures toolbarHiddenButtons works without external CSS frameworks - One-line fix for a critical configuration feature Testing: - Library builds successfully - No breaking changes to existing functionality
1 parent bce6914 commit 3563552

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

projects/angular-editor/themes/default.scss

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
// Fix for toolbarHiddenButtons option
2+
// The [hidden] attribute needs explicit styling to work without Bootstrap
3+
[hidden] {
4+
display: none !important;
5+
}
6+
17
:root {
28
--ae-gap: 5px;
39
--ae-text-area-border: 1px solid #ddd;

0 commit comments

Comments
 (0)