From d21d6583ba1f1fd03e93694348eb00cc649d5064 Mon Sep 17 00:00:00 2001 From: Marc Espin Date: Sun, 24 Mar 2024 10:42:18 +0100 Subject: [PATCH] dix: Docs typos (#548) --- crates/components/src/link.rs | 2 +- crates/components/src/menu.rs | 8 +++++--- crates/components/src/tile.rs | 4 ++-- 3 files changed, 8 insertions(+), 6 deletions(-) diff --git a/crates/components/src/link.rs b/crates/components/src/link.rs index 7cf69ebdf..b0e8276a8 100644 --- a/crates/components/src/link.rs +++ b/crates/components/src/link.rs @@ -13,7 +13,7 @@ pub enum LinkTooltip { None, /// Default tooltip. /// - /// - For a route, this is the same as [`None`](AnchorTooltip::None). + /// - For a route, this is the same as [`None`](crate::LinkTooltip::None). /// - For a URL, this is the value of that URL. Default, /// Custom tooltip to always show. diff --git a/crates/components/src/menu.rs b/crates/components/src/menu.rs index 831aa5af4..fe5429676 100644 --- a/crates/components/src/menu.rs +++ b/crates/components/src/menu.rs @@ -10,9 +10,6 @@ use winit::window::CursorIcon; /// `Menu` component. /// -/// # Styling -/// Inherits the [`MenuTheme`](freya_hooks::MenuTheme) theme. -/// /// # Example /// /// ```no_run @@ -127,6 +124,11 @@ pub enum MenuItemStatus { Hovering, } +/// `MenuItem` component. +/// +/// # Styling +/// Inherits the [`MenuItemTheme`](freya_hooks::MenuItemTheme) theme. +/// #[allow(non_snake_case)] #[component] pub fn MenuItem( diff --git a/crates/components/src/tile.rs b/crates/components/src/tile.rs index f963a2b0b..d085e21a9 100644 --- a/crates/components/src/tile.rs +++ b/crates/components/src/tile.rs @@ -20,14 +20,14 @@ pub enum TileStatus { /// /// # Example /// -/// Tile is meant to be used with other components, take a look at [`Radio`](freya_components::Radio) for instance. +/// Tile is meant to be used with other components, take a look at [`Radio`](crate::Radio) for instance. /// #[allow(non_snake_case)] #[component] pub fn Tile( /// Inner children for the Tile. children: Element, - /// Optional element to be placed before the inner children of the Tile. Such as a [`Radio`] + /// Optional element to be placed before the inner children of the Tile. Such as a [`Radio`](crate::Radio) leading: Option, /// Event handler for when the Tile is selected, e.g when clicking on it. onselect: Option>,