Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CR2023: Fix checkbox ripple centering in focus state.
In the previous implementation, the calculations for the ripple position were thrown off by the removal of the border. This CL changes the ripple's offset to be a percentage value and applies a transform to ensure that it is always centered relative to its container. This applies the same logic currently being used for the checkbox's hover layer. This change also fixes the styling of GM3 checkboxes in print preview. Bug: 1400863 Change-Id: Iefd12173329320a00e6dd77b259f83b5cdf547f5 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4347920 Reviewed-by: Demetrios Papadopoulos <dpapad@chromium.org> Commit-Queue: Cole Horvitz <colehorvitz@chromium.org> Cr-Commit-Position: refs/heads/main@{#1118980}
- Loading branch information