From ff244d3c9451acc33cd043f2c628436a36d85f19 Mon Sep 17 00:00:00 2001 From: Maya Gilad Date: Fri, 8 Nov 2024 19:55:01 +0200 Subject: [PATCH] Create Checklist and RadioItems labels with titles --- CHANGELOG.md | 4 + .../src/components/Checklist.react.js | 1 + .../src/components/RadioItems.react.js | 1 + .../dropdown/test_option_title_prop.py | 70 --------------- .../tests/integration/test_title_props.py | 85 +++++++++++++++++++ 5 files changed, 91 insertions(+), 70 deletions(-) delete mode 100644 components/dash-core-components/tests/integration/dropdown/test_option_title_prop.py create mode 100644 components/dash-core-components/tests/integration/test_title_props.py diff --git a/CHANGELOG.md b/CHANGELOG.md index 6e652c64c1..bae1eafb0c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,10 @@ This project adheres to [Semantic Versioning](https://semver.org/). ## [UNRELEASED] +## Added + +- [#3068](https://github.com/plotly/dash/pull/3068) Add titles to labels in Checklist and RadioItems components + ## Fixed - [#3080](https://github.com/plotly/dash/pull/3080) Fix docstring generation for components using single-line or nonstandard-indent leading comments diff --git a/components/dash-core-components/src/components/Checklist.react.js b/components/dash-core-components/src/components/Checklist.react.js index 784d8fc596..e2afe42437 100644 --- a/components/dash-core-components/src/components/Checklist.react.js +++ b/components/dash-core-components/src/components/Checklist.react.js @@ -43,6 +43,7 @@ export default class Checklist extends Component { ...labelStyle, }} className={labelClassName} + title={option.title} >