Skip to content

Commit

Permalink
#1342 fix accessibility issue: use dynamic font size
Browse files Browse the repository at this point in the history
  • Loading branch information
hosy authored and TheOneRing committed Jun 11, 2024
1 parent 885dd57 commit 9d8afc6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ class ActionCell: ThemeableCollectionViewCell {

titleLabel.textAlignment = .center

titleLabel.font = UIFont.systemFont(ofSize: 10)
titleLabel.font = UIFont.preferredFont(forTextStyle: .caption2)

self.configuredConstraints = [
iconView.leadingAnchor.constraint(greaterThanOrEqualTo: contentView.leadingAnchor, constant: iconInsets.left),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,7 @@ open class ClientItemViewController: CollectionViewController, SortBarDelegate,

footerFolderStatisticsLabel = ThemeCSSLabel(withSelectors: [.sectionFooter, .statistics])
footerFolderStatisticsLabel?.translatesAutoresizingMaskIntoConstraints = false
footerFolderStatisticsLabel?.font = UIFont.systemFont(ofSize: UIFont.smallSystemFontSize)
footerFolderStatisticsLabel?.font = UIFont.preferredFont(forTextStyle: .footnote)
footerFolderStatisticsLabel?.textAlignment = .center
footerFolderStatisticsLabel?.setContentHuggingPriority(.required, for: .vertical)
footerFolderStatisticsLabel?.setContentCompressionResistancePriority(.required, for: .vertical)
Expand Down

0 comments on commit 9d8afc6

Please sign in to comment.