isRow ? toggleRowButtonVisibility(e.currentTarget) : toggleColButtonVisibility(e.currentTarget)}
className={classNameInner}
ref={listRef}>
@@ -206,13 +248,16 @@ export const TabList = (props: TabListProps) => {
)}
- {overflow && (
-
-
+
+ {...scrollButtonProps}>
+
+
)}
diff --git a/packages/core/src/task/task.css b/packages/core/src/task/task.css
index c24baa26..95215bca 100644
--- a/packages/core/src/task/task.css
+++ b/packages/core/src/task/task.css
@@ -3,7 +3,7 @@
:root {
--f-task-card-background: var(--f-color-surface);
- --f-task-card-border: 0.1rem solid var(--f-color-border);
+ --f-task-card-border: 1px solid var(--f-color-border);
--f-task-card-radius: var(--f-radius);
--f-task-card-spacing-bottom: 0.25rem;
--f-task-card-padding: 0.75rem;
@@ -97,7 +97,7 @@
}
.f-task-card .f-avatar {
- border: 0.1rem solid var(--f-color-surface);
+ border: 1px solid var(--f-color-surface);
}
/* list item */
@@ -116,7 +116,7 @@
.f-task-list-item {
background: var(--f-task-li-background);
- border-top: 0.1rem solid var(--f-color-border);
+ border-top: 1px solid var(--f-color-border);
border-radius: var(--f-task-li-radius);
position: relative;
width: 100%;
@@ -156,7 +156,7 @@
}
.f-task-list-item .f-avatar {
- border: 0.1rem solid var(--f-color-surface);
+ border: 1px solid var(--f-color-surface);
}
.f-task-list-item__title {
@@ -239,7 +239,7 @@
}
.f-task-menu-button {
- padding: 0.1rem;
+ padding: 0.15rem;
display: none;
position: absolute;
top: var(--f-task-menu-y);
diff --git a/packages/core/src/text/text.css b/packages/core/src/text/text.css
index 149118ba..ede5ebe8 100644
--- a/packages/core/src/text/text.css
+++ b/packages/core/src/text/text.css
@@ -108,20 +108,35 @@ legend.f-text {
.f-text.xs {
font-size: var(--f-font-size-xs);
+ line-height: var(--f-font-size-xs);
}
.f-text.sm {
font-size: var(--f-font-size-sm);
+ line-height: var(--f-font-size-sm);
}
.f-text.md {
font-size: var(--f-font-size-md);
+ line-height: var(--f-font-size-md);
}
.f-text.lg {
font-size: var(--f-font-size-lg);
+ line-height: var(--f-font-size-lg);
}
.f-text.xl {
font-size: var(--f-font-size-xl);
+ line-height: var(--f-font-size-xl);
+}
+
+/* default line height */
+
+p.f-text.xs,
+p.f-text.sm,
+p.f-text.md,
+p.f-text.lg,
+p.f-text.xl {
+ line-height: default;
}
diff --git a/packages/core/src/textarea/textarea.css b/packages/core/src/textarea/textarea.css
index 758ab367..9b2cfc82 100644
--- a/packages/core/src/textarea/textarea.css
+++ b/packages/core/src/textarea/textarea.css
@@ -1,7 +1,7 @@
:root {
--f-textarea-background-color: var(--f-color-surface);
--f-textarea-border-color: var(--f-color-border);
- --f-textarea-border-width: 0.1rem;
+ --f-textarea-border-width: 1px;
--f-textarea-border-color-active: var(--f-color-border-strong);
--f-textarea-color: var(--f-color-text-weak);
--f-textarea-color-placeholder: var(--f-color-text-weakest);
diff --git a/packages/core/src/textarea/textarea.tsx b/packages/core/src/textarea/textarea.tsx
index accdbcb6..24f2b671 100644
--- a/packages/core/src/textarea/textarea.tsx
+++ b/packages/core/src/textarea/textarea.tsx
@@ -34,7 +34,7 @@ export const Textarea = forwardRef((props: TextareaProps, ref) => {
}
}
- const onFocus = () => textareaRef.current?.select()
+ const onFocus = () => selectOnFocus ? textareaRef.current?.select() : null
useEffect(() => {
if (!textareaRef.current) return
diff --git a/packages/core/src/timeline/timeline.css b/packages/core/src/timeline/timeline.css
index 39095c73..2ec05873 100644
--- a/packages/core/src/timeline/timeline.css
+++ b/packages/core/src/timeline/timeline.css
@@ -6,14 +6,15 @@
--f-timeline-item-marker-line-spacing: 0.5rem;
--f-timeline-item-marker-width: 1.5rem;
--f-timeline-item-marker-spacing: var(--f-size-2);
- --f-timeline-item-spacing: var(--f-size-3);
+ --f-timeline-item-margin: var(--f-size-3);
+ --f-timeline-item-padding: var(--f-size-4);
--f-timeline-item-marker-top: 1px;
}
.f-timeline {}
.f-timeline > .f-timeline-item + .f-timeline-item {
- margin-top: var(--f-timeline-item-spacing);
+ margin-top: var(--f-timeline-item-margin);
}
.f-timeline-item {
@@ -35,6 +36,7 @@
overflow: hidden;
width: var(--f-timeline-item-marker-width);
top: var(--f-timeline-item-marker-top); /* tiny hack to get it lined up with container start */
+ padding-bottom: var(--f-timeline-item-padding);
}
.f-timeline-item__marker > * {
diff --git a/packages/core/src/timeline/timeline.stories.tsx b/packages/core/src/timeline/timeline.stories.tsx
index b15207ac..388861f5 100644
--- a/packages/core/src/timeline/timeline.stories.tsx
+++ b/packages/core/src/timeline/timeline.stories.tsx
@@ -18,7 +18,8 @@ export const Usage = () => (
Checked in at the hotel.
-
6m ago
@@ -27,6 +28,7 @@ export const Usage = () => (
Departed JFK airport via Uber.
56m ago
@@ -37,6 +39,7 @@ export const Usage = () => (
Passed through security checkpoint.
Entered airport facility.
3h ago
@@ -45,6 +48,7 @@ export const Usage = () => (
Caught an Uber bound for the airport.
6h ago
@@ -72,6 +76,7 @@ export const CustomMarkers = () => (
}>
Checked in at the hotel.
6m ago
@@ -87,6 +92,7 @@ export const CustomMarkers = () => (
}>
Departed JFK airport via Uber.
56m ago
@@ -97,6 +103,7 @@ export const CustomMarkers = () => (
Passed through security checkpoint.
Entered airport facility.
3h ago
@@ -105,6 +112,7 @@ export const CustomMarkers = () => (
}>
Caught an Uber bound for the airport.
6h ago
diff --git a/packages/core/src/upload/upload.css b/packages/core/src/upload/upload.css
index 8bc570d9..600add38 100644
--- a/packages/core/src/upload/upload.css
+++ b/packages/core/src/upload/upload.css
@@ -1,8 +1,8 @@
:root {
--f-upload-border-radius: var(--f-radius);
- --f-upload-border: 0.2rem solid var(--f-color-border);
- --f-upload-border-hover: 0.2rem solid var(--f-color-border-strong);
- --f-upload-border-active: 0.2rem dashed var(--f-color-accent);
+ --f-upload-border: 1px solid var(--f-color-border);
+ --f-upload-border-hover: 1px solid var(--f-color-border-strong);
+ --f-upload-border-active: 1px dashed var(--f-color-accent);
--f-upload-background: var(--f-color-surface-strong);
--f-upload-color: var(--f-color-text);
--f-upload-color-sub: var(--f-color-text-weaker);
diff --git a/packages/design/package.json b/packages/design/package.json
index 67c351c7..d0350d6a 100644
--- a/packages/design/package.json
+++ b/packages/design/package.json
@@ -1,7 +1,7 @@
{
"name": "@fold-dev/design",
"title": "Design Tokens",
- "version": "0.4.0",
+ "version": "0.5.0",
"description": "The UI library for product teams.",
"main": "",
"module": "",
diff --git a/packages/design/tokens/font.json b/packages/design/tokens/font.json
index f62f06d7..be17e0ee 100644
--- a/packages/design/tokens/font.json
+++ b/packages/design/tokens/font.json
@@ -1,7 +1,7 @@
{
"font": {
- "heading": { "value": "-apple-system,system-ui,BlinkMacSystemFont,\"Segoe UI\",Roboto,\"Helvetica Neue\",Arial,sans-serif" },
- "body": { "value": "-apple-system,system-ui,BlinkMacSystemFont,\"Segoe UI\",Roboto,\"Helvetica Neue\",Arial,sans-serif" },
+ "heading": { "value": "Inter,-apple-system,system-ui,BlinkMacSystemFont,\"Segoe UI\",Roboto,\"Helvetica Neue\",Arial,sans-serif" },
+ "body": { "value": "Inter,-apple-system,system-ui,BlinkMacSystemFont,\"Segoe UI\",Roboto,\"Helvetica Neue\",Arial,sans-serif" },
"mono": { "value": "SFMono-Regular,Menlo,Monaco,Consolas,\"Liberation Mono\",\"Courier New\",monospace" }
}
}