From cab070392ffff268b53b07fb12cd67ce0f3b7637 Mon Sep 17 00:00:00 2001 From: "christian.b.hoffmann" Date: Wed, 10 Jan 2024 15:24:49 +0100 Subject: [PATCH] fixed missing token and missing word wrap behaviour --- .../ui-library/src/components/forms/select/index.css.ts | 7 +++++++ .../src/components/forms/select/index.stories.ts | 8 +++++++- 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/packages/ui-library/src/components/forms/select/index.css.ts b/packages/ui-library/src/components/forms/select/index.css.ts index f7ea16ed1..e9e87b6bf 100644 --- a/packages/ui-library/src/components/forms/select/index.css.ts +++ b/packages/ui-library/src/components/forms/select/index.css.ts @@ -137,6 +137,13 @@ export const { tokenizedLight: selectInputLight, tokenizedDark: selectInputDark border: ${Input.Default.Rest.width} ${Input.Default.Rest.style} ${Input.Default.Rest.color}; border-radius: ${InputBorderRadius}; box-sizing: border-box; + background-color: ${SurfaceFill.Default.Rest}; + + .blr-form-select { + text-overflow: ellipsis; + white-space: nowrap; + overflow: hidden; + } .blr-input-icon { position: relative; diff --git a/packages/ui-library/src/components/forms/select/index.stories.ts b/packages/ui-library/src/components/forms/select/index.stories.ts index f57ae1624..205c15a43 100644 --- a/packages/ui-library/src/components/forms/select/index.stories.ts +++ b/packages/ui-library/src/components/forms/select/index.stories.ts @@ -36,7 +36,13 @@ const defaultParams: BlrSelectType = { name: 'select', options: [ { value: '0', label: 'Option 1', selected: false, disabled: true }, - { value: '1', label: 'Option 2', selected: false, disabled: false }, + { + value: '1', + label: + 'To big option Li Europan lingues es membres del sam familie. Lor separat existentie es un myth. Por scientie, musica, sport etc, litot Europa usa li sam vocabular. Li lingues differe solmen in li grammatica, li pronunciation e li plu commun vocabules. Omnicos directe al desirabilite de un nov lingua franca: On refusa continuar payar custosi traductores. At solmen va esser necessi far uniform grammatica, pronunciation e plu sommun paroles. Ma quande lingues coalesce, li grammatica del resultant lingue es plu simplic e regulari quam ti del coalescent lingues. Li nov lingua franca va esser plu simplic e regulari quam li existent Europan lingues. It va esser tam simplic quam Occidental in fact, it va esser Occidental. A un Angleso it va semblar un simplificat Angles, quam un skeptic Cambridge amico dit me que Occidental es.Li Europan lingues es membres del sam familie. Lor separat existentie es un myth. Por scientie, musica, sport etc, litot Europa usa li sam vocabular. Li lingues differe solmen in li grammatica, li pronunciation e li plu commun vocabules. Omnicos directe al desirabilite de un nov lingua franca: On refusa continuar payar custosi traductores. At solmen va esser necessi far uniform grammatica, pronunciation e plu sommun paroles.', + selected: false, + disabled: false, + }, { value: '2', label: 'Option 3', selected: true, disabled: false }, { value: '4', label: 'Option 4', selected: false, disabled: false }, ],