Skip to content

Commit

Permalink
dix: Docs typos (#548)
Browse files Browse the repository at this point in the history
  • Loading branch information
marc2332 authored Mar 24, 2024
1 parent 980d264 commit d21d658
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
2 changes: 1 addition & 1 deletion crates/components/src/link.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
8 changes: 5 additions & 3 deletions crates/components/src/menu.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,6 @@ use winit::window::CursorIcon;

/// `Menu` component.
///
/// # Styling
/// Inherits the [`MenuTheme`](freya_hooks::MenuTheme) theme.
///
/// # Example
///
/// ```no_run
Expand Down Expand Up @@ -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(
Expand Down
4 changes: 2 additions & 2 deletions crates/components/src/tile.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<Element>,
/// Event handler for when the Tile is selected, e.g when clicking on it.
onselect: Option<EventHandler<()>>,
Expand Down

0 comments on commit d21d658

Please sign in to comment.