File tree Expand file tree Collapse file tree 1 file changed +13
-19
lines changed
packages/svelte-ux/src/routes/docs Expand file tree Collapse file tree 1 file changed +13
-19
lines changed Original file line number Diff line number Diff line change 227227 : item .type === ' github'
228228 ? mdiGithub
229229 : mdiLink }
230- <ListItem
231- title ={item .name .toString ()}
232- {icon }
233- avatar ={{ size : ' sm' , class : ' text-xs text-white bg-primary' }}
234- on:click ={() => {
235- if (item .url instanceof URL ) {
236- // open in new window
237- window .open (item .url );
238- } else {
239- // go to route
240- goto (item .url );
241- }
242- }}
243- class =" hover:bg-surface-200 cursor-pointer"
244- >
245- <div slot =" actions" >
246- <Icon data ={mdiChevronRight } class =" text-surface-content/50" />
247- </div >
248- </ListItem >
230+ <a href ={item .url .toString ()} class =" group" >
231+ <ListItem
232+ title ={item .name .toString ()}
233+ {icon }
234+ avatar ={{ size : ' sm' , class : ' text-xs text-white bg-primary' }}
235+ list =" group"
236+ class =" hover:bg-surface-200 cursor-pointer"
237+ >
238+ <div slot =" actions" >
239+ <Icon data ={mdiChevronRight } class =" text-surface-content/50" />
240+ </div >
241+ </ListItem >
242+ </a >
249243 {/each }
250244 </div >
251245 </div >
You can’t perform that action at this time.
0 commit comments