Commit 766949ca authored by Lyza Danger Gardner's avatar Lyza Danger Gardner Committed by Lyza Gardner

Update shared components in Excerpt

parent ee83db71
import { LinkButton } from '@hypothesis/frontend-shared'; import { LinkButton } from '@hypothesis/frontend-shared/lib/next';
import classnames from 'classnames'; import classnames from 'classnames';
import { useCallback, useLayoutEffect, useRef, useState } from 'preact/hooks'; import { useCallback, useLayoutEffect, useRef, useState } from 'preact/hooks';
...@@ -38,12 +38,13 @@ function InlineControls({ isCollapsed, setCollapsed, linkStyle = {} }) { ...@@ -38,12 +38,13 @@ function InlineControls({ isCollapsed, setCollapsed, linkStyle = {} }) {
> >
<div className="flex justify-end"> <div className="flex justify-end">
<LinkButton <LinkButton
classes="inline underline" color="text"
onClick={() => setCollapsed(!isCollapsed)} onClick={() => setCollapsed(!isCollapsed)}
expanded={!isCollapsed} expanded={!isCollapsed}
title="Toggle visibility of full excerpt text" title="Toggle visibility of full excerpt text"
style={linkStyle} style={linkStyle}
variant="dark" underline="always"
inline
> >
{isCollapsed ? 'More' : 'Less'} {isCollapsed ? 'More' : 'Less'}
</LinkButton> </LinkButton>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment