diff --git a/packages/webawesome/docs/docs/components/popover.md b/packages/webawesome/docs/docs/components/popover.md
index 39014dd8b..a6a3e61fa 100644
--- a/packages/webawesome/docs/docs/components/popover.md
+++ b/packages/webawesome/docs/docs/components/popover.md
@@ -91,7 +91,7 @@ Use the `distance` attribute to control how far the popover appears from its anc
### Arrow Size
-Use the `--arrow-size` custom property to change the size of the popover's arrow. Set it to `0` to remove the arrow entirely.
+Use the `--arrow-size` custom property to change the size of the popover's arrow. To remove it, use the `without-arrow` attribute.
```html {.example}
@@ -99,7 +99,7 @@ Use the `--arrow-size` custom property to change the size of the popover's arrow
I have a big arrow
No arrow
- I don't have an arrow
+ I don't have an arrow
```
diff --git a/packages/webawesome/docs/docs/components/tooltip.md b/packages/webawesome/docs/docs/components/tooltip.md
index 7faf2bb70..e76b618e4 100644
--- a/packages/webawesome/docs/docs/components/tooltip.md
+++ b/packages/webawesome/docs/docs/components/tooltip.md
@@ -113,11 +113,11 @@ Tooltips can be controller programmatically by setting the `trigger` attribute t
### Removing Arrows
-You can control the size of tooltip arrows by overriding the `--wa-tooltip-arrow-size` design token. To remove them, set the value to `0` as shown below.
+You can control the size of tooltip arrows by overriding the `--wa-tooltip-arrow-size` design token. To remove the arrow, use the `without-arrow` attribute.
```html {.example}
No Arrow
-This is a tooltip with no arrow
+This is a tooltip with no arrow
```
To override it globally, set it in a root block in your stylesheet after the Web Awesome stylesheet is loaded.
diff --git a/packages/webawesome/docs/docs/resources/changelog.md b/packages/webawesome/docs/docs/resources/changelog.md
index 77b1c94f4..071d71803 100644
--- a/packages/webawesome/docs/docs/resources/changelog.md
+++ b/packages/webawesome/docs/docs/resources/changelog.md
@@ -13,8 +13,9 @@ Components with the Experimental badge sh
### New Features {data-no-outline}
- Added the `icon-position` attribute to `` [discuss:1099]
-- Added the `animating` custom state to ``
+- Added the `animating` custom state to `` [pr:1214]
- Added `--wa-tooltip-border-color`, `--wa-tooltip-border-style`, and `--wa-tooltip-border-width` tokens [issue:1224]
+- Added the `without-arrow` attribute to `` and `` to hide arrows without artifacts
### Bug Fixes and Improvements {data-no-outline}
diff --git a/packages/webawesome/src/components/popover/popover.ts b/packages/webawesome/src/components/popover/popover.ts
index 331b9d871..376263663 100644
--- a/packages/webawesome/src/components/popover/popover.ts
+++ b/packages/webawesome/src/components/popover/popover.ts
@@ -85,6 +85,9 @@ export default class WaPopover extends WebAwesomeElement {
/** The ID of the popover's anchor element. This must be an interactive/focusable element such as a button. */
@property() for: string | null = null;
+ /** Removes the arrow from the popover. */
+ @property({ attribute: 'without-arrow', type: Boolean, reflect: true }) withoutArrow = false;
+
private eventController = new AbortController();
connectedCallback() {
@@ -300,7 +303,7 @@ export default class WaPopover extends WebAwesomeElement {
skidding=${this.skidding}
flip
shift
- arrow
+ ?arrow=${!this.withoutArrow}
.anchor=${this.anchor}
>
diff --git a/packages/webawesome/src/components/tooltip/tooltip.ts b/packages/webawesome/src/components/tooltip/tooltip.ts
index 4b0720c17..e4c103d94 100644
--- a/packages/webawesome/src/components/tooltip/tooltip.ts
+++ b/packages/webawesome/src/components/tooltip/tooltip.ts
@@ -89,6 +89,9 @@ export default class WaTooltip extends WebAwesomeElement {
*/
@property() trigger = 'hover focus';
+ /** Removes the arrow from the tooltip. */
+ @property({ attribute: 'without-arrow', type: Boolean, reflect: true }) withoutArrow = false;
+
@property() for: string | null = null;
@state() anchor: null | Element = null;
@@ -332,7 +335,7 @@ export default class WaTooltip extends WebAwesomeElement {
skidding=${this.skidding}
flip
shift
- arrow
+ ?arrow=${!this.withoutArrow}
hover-bridge
.anchor=${this.anchor}
>