You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 1528684
Browse filesBrowse the repository at this point in the historyBrowse files
fix: AFCL Tooltip is a native popover placed by CSS anchor positioning with a getBoundingClientRect fallback for older browsers, so core no longer loads flowbite AdminForth/2005
Copy file name to clipboardExpand all lines: adminforth/design/adoption.md
+1-2Lines changed: 1 addition & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -57,8 +57,7 @@ The cards of the landing gallery (`documentation/src/pages/index.tsx`) show eith
57
57
58
58
## Left in core
59
59
60
-
-`afcl/Tooltip.vue` uses the flowbite `Tooltip`, `afcl/DatePicker.vue` and `components/CustomDateRangePicker.vue` use `flowbite-datepicker`.
61
-
- The Tooltip import is the last place where core loads `flowbite`, and loading it also runs flowbite's auto-init of `data-*` attributes (`data-tooltip-target`, `data-dropdown-toggle`, …) on page load. Apps and plugins may rely on it (foreign-inline-list uses `data-tooltip-target`), so a native Tooltip has to come together with moving those usages to AFCL.
60
+
-`afcl/DatePicker.vue` and `components/CustomDateRangePicker.vue` use `flowbite-datepicker`, the last flowbite package of core. `flowbite` itself is gone with its auto-init of `data-*` attributes (`data-tooltip-target`, `data-dropdown-toggle`, …), which ran only once on window `load`, so in the SPA it never reached elements rendered later.
62
61
- Palette classes instead of tokens in `views/PageNotFound.vue`, `views/LoginView.vue`, `views/ListView.vue` (action badge), `renderers/URL.vue`, `afcl/BarChart.vue` (axis labels), the HTML in `utils/utils.ts` and a commented line in `components/Sidebar.vue`.
Copy file name to clipboardExpand all lines: adminforth/design/system-concepts.md
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -56,6 +56,8 @@ The header of the list page is a container named `header`. Below 896px (`@4xl/he
56
56
57
57
flowbite is being removed step by step. Don't add new flowbite usages (`flowbite` JS components, `flowbite-datepicker`, `data-*-toggle` attributes). When you touch code which uses it, replace it with a native Vue implementation, usually an AFCL component. Example: the user menu moved from flowbite `Dropdown` to AFCL `DropdownMenu`.
58
58
59
+
A floating layer is a `popover` element positioned by CSS anchor positioning, like `afcl/Tooltip.vue`. The top layer frees it from z-index and the overflow of parents. Browsers without anchor positioning (Safari before 26, Firefox before 147) get the position from `getBoundingClientRect` under `CSS.supports('anchor-name: --a')`.
60
+
59
61
## SPA dependencies
60
62
61
63
Fonts and icons are dependencies of `adminforth/spa`. Apps install the SPA with npm or pnpm, so a new SPA dependency goes to both `spa/package-lock.json` and `spa/pnpm-lock.yaml`.
0 commit comments