Just to emphasize the information posted by @tsbna44, here are a few comments off the UC website. Again, this is Covid specific and are referencing 2019-2021 academic years.
Pass (P) or Credit (CR) grades earned in spring, summer, and fall 2020, as well as spring and summer 2021, will meet A-G requirements for any student who was enrolled in high school during the 2019-20 and 2020-21 academic years. This includes students currently enrolled in 9th, 10th, 11th, and 12th grades.
UC will continue to calculate the GPA for admission purposes using all A-G courses passed with letter grades in grades 10 and 11, including summer terms following grades 9, 10 and 11. Pass (P) or Credit (CR) grades earned in spring 2020 through summer 2021 will meet A-G subject requirements but will not be calculated in the GPA. Extra points in honors-level coursework will continue to be capped at 8 semesters of honors points in A-G courses completed with letter grades of A, B and C in grades 10 and 11.
UC will accept Pass or Credit grades in A-G courses completed in winter 2020 through summer 2021 to meet A-G requirements. If there is an option between Pass/Credit grades or Letter grades for the A-G courses, a Letter grade is recommended.