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

feat(sizing): Use the sizable mixins and functions to size components. #12471

Merged
merged 46 commits into from
May 9, 2023

Conversation

desig9stein
Copy link
Contributor

Closes #12347

Additional information (check all that apply):

  • Bug fix
  • New functionality
  • Documentation
  • Demos
  • CI/CD

Checklist:

  • All relevant tags have been applied to this PR
  • This PR includes unit tests covering all the new code (test guidelines)
  • This PR includes API docs for newly added methods/properties (api docs guidelines)
  • This PR includes feature/README.MD updates for the feature docs
  • This PR includes general feature table updates in the root README.MD
  • This PR includes CHANGELOG.MD updates for newly added functionality
  • This PR contains breaking changes
  • This PR includes ng update migrations for the breaking changes (migrations guidelines)
  • This PR includes behavioral changes and the feature specification has been updated with them

-- remove unused placeholder selector form badge theme and make it size the same way as in the WC product.
-- remove leftovers form removed css prop 'size' in avatar theme.
-- banner
-- make button use the sizable() function for height.
-- remove compact placeholder from the card component since the size is the same as the other sizes.
-- make chip use the sizable() function for height.
-- make all grid height to use sizable() function.
-- make dropdown items to use sizable function().
@desig9stein desig9stein marked this pull request as ready for review February 16, 2023 11:26
desig9stein and others added 8 commits February 20, 2023 13:34
# Conflicts:
#	src/app/grid-column-moving/grid-column-moving.sample.html
#	src/app/grid-column-moving/grid-column-moving.sample.scss
#	src/app/grid-filtering/grid-filtering.sample.html
#	src/app/grid-filtering/grid-filtering.sample.scss
# Conflicts:
#	projects/igniteui-angular/src/lib/core/styles/components/avatar/_avatar-theme.scss
@SisIvanova
Copy link
Collaborator

All of the previously mentioned issues are fixed. However, I found one other problem related to the dropdown component.
The padding of the igx-combo__search is not correct - Check the Dropdown Density Sample

…s in master.

- remove unused placeholder selector from the dropdown.
@SisIvanova SisIvanova added ✅ status: verified Applies to PRs that have passed manual verification and removed 💥 status: in-test PRs currently being tested labels May 4, 2023
SisIvanova
SisIvanova previously approved these changes May 4, 2023
simeonoff
simeonoff previously approved these changes May 9, 2023
Copy link
Member

@damyanpetev damyanpetev left a comment

Choose a reason for hiding this comment

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

Not sure what the sizable() mixin entails, however I do see a lot of size CSS vars going around. Does this mean this feature is the global CSS var-based sizing?
If so I don't see any changes to the old density handling. Guessing all the magic is handled through the variant classes (nice one), but was sort of expecting component change as well.

In any case, some changelog notes of what this feature is would be nice.

comfortable: 0 rem(24px),
cosy: 0 rem(16px),
compact: 0 rem(12px)
igx-paginator {
Copy link
Member

Choose a reason for hiding this comment

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

Is it possible to use the same selector/name-fallback logic css-vars is using to avoid hardcoding this selector here directly? Would make life easier for Elements

Copy link
Collaborator

Choose a reason for hiding this comment

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

@simeonoff
Copy link
Collaborator

Not sure what the sizable() mixin entails, however I do see a lot of size CSS vars going around. Does this mean this feature is the global CSS var-based sizing? If so I don't see any changes to the old density handling. Guessing all the magic is handled through the variant classes (nice one), but was sort of expecting component change as well.

In any case, some changelog notes of what this feature is would be nice.

The idea is for this to be completely transparent for now. We don't want to expose it to end users before changes are made to the components themselves. This PR handles the CSS part of the problem without regressing the existing functionality. Later, when the display density token is adjusted and thoroughly tested, we will create an entry in the changelog stating the full extent of all changes.

@simeonoff simeonoff merged commit ffd8be1 into master May 9, 2023
@simeonoff simeonoff deleted the mpopov/12347 branch May 9, 2023 15:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
✨ themes triage: blocking version: 16.0.x ✅ status: verified Applies to PRs that have passed manual verification
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Themes] - Use the sizable mixins and functions to size components
5 participants