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

Add explicit size option to ToggleIcon #6092

Merged
merged 3 commits into from
Dec 20, 2023
Merged

Add explicit size option to ToggleIcon #6092

merged 3 commits into from
Dec 20, 2023

Conversation

philippjfr
Copy link
Member

ToggleIcon now allows either width/height or an explicit size to be defined.

Copy link

codecov bot commented Dec 20, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (5b89692) 84.66% compared to head (4a84d70) 84.67%.
Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #6092   +/-   ##
=======================================
  Coverage   84.66%   84.67%           
=======================================
  Files         296      296           
  Lines       44057    44073   +16     
=======================================
+ Hits        37302    37318   +16     
  Misses       6755     6755           
Flag Coverage Δ
ui-tests 40.65% <100.00%> (+0.02%) ⬆️
unitexamples-tests 72.72% <17.64%> (-0.03%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

"cell_type": "markdown",
"metadata": {},
"source": [
"The icon will automatically adapt to the specified `width`/`height` but you may also provide an explicit `size`:"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
"The icon will automatically adapt to the specified `width`/`height` but you may also provide an explicit `size`:"
"The icon will automatically adapt to the specified `width`/`height` but you may also provide an explicit `size` which takes precedence:"

Copy link
Contributor

@ahuang11 ahuang11 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested and looks good to me! Thanks for cleaning up the notebook too.

@philippjfr philippjfr merged commit 1fe9b28 into main Dec 20, 2023
13 checks passed
@philippjfr philippjfr deleted the toggle-icon-size branch December 20, 2023 00:39
philippjfr added a commit that referenced this pull request Dec 20, 2023
* Add explicit size option to ToggleIcon

* Add tests

* Remove line-height around icons
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants