-
Notifications
You must be signed in to change notification settings - Fork 477
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
feat(core): replace TUI_DROPDOWN_OFFSET
with injection token
#3141
feat(core): replace TUI_DROPDOWN_OFFSET
with injection token
#3141
Conversation
Pull request was closed ✔️All saved screenshots (for current PR) were deleted 🗑️ |
How about we add it to options? And also maybe it makes sense to make it two values: horizontal and vertical? |
Yes, it really doesn't make sense to me if we don't add vertical and horizontal ones. If added to options then we need to extend But I would consider adding this to all places in the api documentation. And for a regular And maybe you remember why you created |
Hmmm. True. Then it doesn't make sense to add both, if only one would matter :) Let's keep it one and add to directive/options token. |
BundleMonFiles updated (1)
Unchanged files (4)
Total files change -36B -0.01% Groups updated (1)
Final result: ✅ View report in BundleMon website ➡️ |
Codecov ReportBase: 61.46% // Head: 61.46% // Decreases project coverage by
Additional details and impacted files@@ Coverage Diff @@
## main #3141 +/- ##
==========================================
- Coverage 61.46% 61.46% -0.01%
==========================================
Files 1534 1534
Lines 18107 18107
Branches 2524 2524
==========================================
- Hits 11130 11129 -1
- Misses 6517 6518 +1
Partials 460 460
Flags with carried forward coverage won't be shown. Click here to find out more.
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report at Codecov. |
db0997f
to
710651c
Compare
@waterplea |
We only support English docs now, don't have resources for multiple languages, so don't worry about it. |
@bondarvladislave will you finish this PR? In discussion we figured out there's no need for 2 values because only one is used at any given time. |
@bondarvladislave I'm not sure horizontal offset makes sense for traditional dropdown, if more complicated positioning is required, it's best to make your own |
@waterplea Should I create a separate file for sided dropdown options or combine with all options this way? Then |
How about we only make single offset in this PR, use it for vertical in regular and horizontal in sided, and we will address sided vertical position in another PR? |
d1ad281
to
8db951d
Compare
@waterplea |
Yes, I'll do the other one myself next week. We will release new version on Monday, then merge your PR and I'll cover the sided offset so there will not be a version where vertical offset is wrong. |
d9e7ea4
to
0458215
Compare
@waterplea |
No, I was just sick for a couple of days. Thank you for this PR. |
PR Checklist
Please check if your PR fulfills the following requirements:
PR Type
What kind of change does this PR introduce?
What is the current behavior?
In different design systems, the
tui-data-list
may contain paddings other than4px
, which are set by theTUI_DROPDOWN_OFFSET
constant. I would like to do this as an injection token so that the dropdown does not cover the content.What is the new behavior?
Does this PR introduce a breaking change?