Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AppRailTile and AppRailAnchor default styling #2543

Open
bertramdesigns opened this issue Mar 12, 2024 · 0 comments
Open

AppRailTile and AppRailAnchor default styling #2543

bertramdesigns opened this issue Mar 12, 2024 · 0 comments
Labels
bug Something isn't working
Milestone

Comments

@bertramdesigns
Copy link

bertramdesigns commented Mar 12, 2024

Current Behavior

The lead slot on AppRailTile and AppRailAnchor are styled differently.
Screenshot 2024-03-12 at 15 30 11
Screenshot 2024-03-12 at 15 32 04

regionLead is set to 'flex justify-center items-center' on Anchor and '' on Tile.
text size is set to 12px on one and 16px by default on the other.

Expected Behavior

Defaults should be the same, probably 'flex justify-center items-center' as this is suitable for most cases.

Steps To Reproduce

<svelte:fragment slot="trail">
      <AppRailTile
	      name="settings"
	      on:click={() => windowStore.setSidebarActiveTile('settings')}
	      bind:group={$windowStore.sidebar.activeTile}
	      value="settings"
      >
	      <svelte:fragment slot="lead"
		      ><Icon icon="ph:gear-duotone" style="font-size: 2em"></Icon></svelte:fragment
	      >
	      <span>Settings</span>
      </AppRailTile>
      <AppRailAnchor href="/settings" selected={$page.url.pathname === '/settings'}>
	      <svelte:fragment slot="lead"
		      ><Icon icon="ph:gear-duotone" style="font-size: 2em"></Icon></svelte:fragment
	      >
	      <span>Settings</span>
      </AppRailAnchor>
</svelte:fragment>

Link to Reproduction / Stackblitz

No response

More Information

Alignment for both design and development experience is preferred.
Happy to open PR if we define which one should be default.

@bertramdesigns bertramdesigns added the bug Something isn't working label Mar 12, 2024
@endigo9740 endigo9740 added this to the v2.0 milestone Apr 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants