Skip to content

Commit 064b824

Browse files
committed
chore!: drop tooltip directive
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
1 parent 656de06 commit 064b824

7 files changed

Lines changed: 5 additions & 171 deletions

File tree

CHANGELOG.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,10 @@ Especially the following are now provided as composables:
140140
- The `range` property was removed in favor of `type="datetime-range"` (datetime ranges), `type="date-range"` (date only ranges), and `type="time-range"` (time only ranges).
141141
- The `lang` property was replaced with the `locale` property.
142142
- The `formatter` property was removed.
143-
143+
- `Tooltip` directive was deprecated in v8 and is now removed.
144+
This was done in favor of native tooltips using the `title` attribute, which is better for accessibility.
145+
If you really need custom formatted tooltips, you can use `NcPopover` instead.
146+
144147
### 🚀 Enhancements
145148
* Allow writing components using Typescript and provide type definitions for `NcButton` [\#4525](https://github.com/nextcloud-libraries/nextcloud-vue/pull/4525) \([susnux](https://github.com/susnux)\)
146149

docs/directives/tooltip.md

Lines changed: 0 additions & 55 deletions
This file was deleted.

src/directives/Tooltip/index.js

Lines changed: 0 additions & 20 deletions
This file was deleted.

src/directives/Tooltip/index.scss

Lines changed: 0 additions & 88 deletions
This file was deleted.

src/directives/index.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,3 @@
55

66
export { default as Focus } from './Focus/index.js'
77
export { default as Linkify } from './Linkify/index.ts'
8-
export { default as Tooltip } from './Tooltip/index.js'

styleguide.config.cjs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -115,10 +115,6 @@ module.exports = async () => {
115115
name: 'Linkify',
116116
content: 'docs/directives/linkify.md',
117117
},
118-
{
119-
name: 'Tooltip',
120-
content: 'docs/directives/tooltip.md',
121-
},
122118
],
123119
},
124120
{

styleguide/preview.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,11 @@
33
* SPDX-License-Identifier: AGPL-3.0-or-later
44
*/
55

6-
import { Tooltip, Focus, Linkify } from '../src/directives/index.ts'
6+
import { Focus, Linkify } from '../src/directives/index.ts'
77

88
// The export here MUST be default or module.export
99
// this is what is imported by the styleguide
1010
export default (app) => {
1111
app.directive('focus', Focus)
1212
app.directive('linkify', Linkify)
13-
app.directive('tooltip', Tooltip)
1413
}

0 commit comments

Comments
 (0)