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

fix: feedback ui postCard and searchField #78

Merged
merged 1 commit into from
Mar 28, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@eleven-labs/design-system",
"description": "Design System for Eleven Labs",
"version": "0.33.0",
"version": "0.34.0",
"repository": {
"type": "git",
"url": "https://github.com/eleven-labs/design-system.git"
Expand Down
2 changes: 0 additions & 2 deletions src/components/Molecules/Cards/PostCard/PostCard.scss
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,6 @@
}

&--side-image {
--max-height-post-card: var(--cover-size-square-mobile-post-card);

flex-direction: row-reverse;

@include create-media-queries('md') {
Expand Down
8 changes: 1 addition & 7 deletions src/components/Molecules/SearchField/SearchField.scss
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

&__input {
width: 100%;
padding: #{map-get-strict($token-variables, 'spacing', 'xs')} calc(#{map-get-strict($token-variables, 'spacing', 'xl')} + #{map-get-strict($token-variables, 'spacing', 'm')}) #{map-get-strict($token-variables, 'spacing', 'xs')} #{map-get-strict($token-variables, 'spacing', 'xs')};
padding: #{map-get-strict($token-variables, 'spacing', 'xs')} calc(#{map-get-strict($token-variables, 'spacing', 'xxl')} + #{map-get-strict($token-variables, 'spacing', 'xl')}) #{map-get-strict($token-variables, 'spacing', 'xs')} #{map-get-strict($token-variables, 'spacing', 'xs')};
font-family: #{map-get-strict($token-variables, 'font-family', 'base')};
font-size: var(--font-size-input, #{map-get-strict($token-variables, 'typography', 'text', 'xs', 'font-size')});
line-height: #{map-get-strict($token-variables, 'line-height', 'large')};
Expand All @@ -32,12 +32,6 @@
}
}

&--has-value {
#{$this}__input {
padding-right: calc(#{map-get-strict($token-variables, 'spacing', 'xxl')} + #{map-get-strict($token-variables, 'spacing', 'xl')});
}
}

&__actions-container {
position: absolute;
top: 0;
Expand Down
6 changes: 1 addition & 5 deletions src/components/Molecules/SearchField/SearchField.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,7 @@ export interface SearchFieldProps extends BoxProps {

export const SearchField = polyRef<'div', SearchFieldProps>(
({ input, buttonClose = {}, buttonSearch, className, ...props }, ref) => (
<Box
{...props}
className={classNames('search-field', { 'search-field--has-value': Boolean(input.value) }, className)}
ref={ref}
>
<Box {...props} className={classNames('search-field', className)} ref={ref}>
<Box {...{ as: 'input', ...input }} className="search-field__input" />
<Flex justifyContent="center" alignItems="center" className="search-field__actions-container">
{Boolean(input.value) && (
Expand Down
Loading