Skip to content

Commit 9a8c49a

Browse files
authored
feat(datetime): add ionic theme styles to time label (#29829)
Issue number: internal --------- <!-- Please do not submit updates to dependencies unless it fixes an issue. --> <!-- Please try to limit your pull request to one type (bugfix, feature, etc). Submit multiple pull requests if needed. --> ## What is the current behavior? <!-- Please describe the current behavior that you are modifying. --> No `ionic` theme styles for the datetime time label ## What is the new behavior? <!-- Please describe the behavior or changes that are being added by this PR. --> Adds styles to the time label for the `ionic` theme ## Does this introduce a breaking change? - [ ] Yes - [x] No <!-- If this introduces a breaking change: 1. Describe the impact and migration path for existing applications below. 2. Update the BREAKING.md file with the breaking change. 3. Add "BREAKING CHANGE: [...]" to the commit description when merging. See https://github.com/ionic-team/ionic-framework/blob/main/docs/CONTRIBUTING.md#footer for more information. --> ## Other information <!-- Any other information that is important to this PR such as screenshots of how the component looks before and after the change. --> [Preview](https://ionic-framework-6m937m00k-ionic1.vercel.app/src/components/datetime/test/basic?ionic:theme=ionic)
1 parent 6aa47d3 commit 9a8c49a

7 files changed

+27
-0
lines changed

core/src/components/datetime/datetime.ionic.scss

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -173,3 +173,30 @@
173173
.calendar-day:active {
174174
background: globals.$ionic-color-primary-300;
175175
}
176+
177+
// Time / Header
178+
// -----------------------------------
179+
:host .datetime-time {
180+
@include globals.padding(globals.$ionic-space-100, globals.$ionic-space-400);
181+
182+
height: globals.$ionic-scale-800;
183+
}
184+
185+
:host .datetime-time .time-header {
186+
@include globals.typography(globals.$ionic-action-lg);
187+
188+
color: globals.$ionic-color-neutral-800;
189+
}
190+
191+
:host .datetime-time button {
192+
@include globals.padding(globals.$ionic-space-0, globals.$ionic-space-200);
193+
@include globals.typography(globals.$ionic-body-md-medium);
194+
@include globals.border-radius(globals.$ionic-border-radius-full);
195+
196+
display: flex;
197+
198+
align-items: center;
199+
200+
background-color: globals.$ionic-color-neutral-100;
201+
color: globals.$ionic-color-neutral-1200;
202+
}
Loading
Loading
Loading
252 Bytes
Loading
418 Bytes
Loading
425 Bytes
Loading

0 commit comments

Comments
 (0)