Skip to content

Commit 6c24038

Browse files
committed
#1342 fix accessibility issue: use dynamic font size
1 parent 76f2402 commit 6c24038

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

ownCloudAppShared/Client/Collection Views/Cells/ActionCell.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ class ActionCell: ThemeableCollectionViewCell {
106106

107107
titleLabel.textAlignment = .center
108108

109-
titleLabel.font = UIFont.systemFont(ofSize: 10)
109+
titleLabel.font = UIFont.preferredFont(forTextStyle: .caption2)
110110

111111
self.configuredConstraints = [
112112
iconView.leadingAnchor.constraint(greaterThanOrEqualTo: contentView.leadingAnchor, constant: iconInsets.left),

ownCloudAppShared/Client/View Controllers/ClientItemViewController.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -283,7 +283,7 @@ open class ClientItemViewController: CollectionViewController, SortBarDelegate,
283283

284284
footerFolderStatisticsLabel = ThemeCSSLabel(withSelectors: [.sectionFooter, .statistics])
285285
footerFolderStatisticsLabel?.translatesAutoresizingMaskIntoConstraints = false
286-
footerFolderStatisticsLabel?.font = UIFont.systemFont(ofSize: UIFont.smallSystemFontSize)
286+
footerFolderStatisticsLabel?.font = UIFont.preferredFont(forTextStyle: .footnote)
287287
footerFolderStatisticsLabel?.textAlignment = .center
288288
footerFolderStatisticsLabel?.setContentHuggingPriority(.required, for: .vertical)
289289
footerFolderStatisticsLabel?.setContentCompressionResistancePriority(.required, for: .vertical)

0 commit comments

Comments
 (0)