Skip to content

Commit 19e743b

Browse files
committed
Fix CTA button text invisibility on course detail pages
The .course-detail a rule was inheriting onto .cta-button due to higher specificity (class + element > class alone), making button text the same color as the button background. Scoped the .course-detail a rule with :not(.cta-button) so it no longer matches CTA buttons.
1 parent 9b12c77 commit 19e743b

6 files changed

Lines changed: 245 additions & 2 deletions

File tree

app/assets/stylesheets/application.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ body {
145145
padding: 0 2rem;
146146
}
147147

148-
.course-detail a {
148+
.course-detail a:not(.cta-button) {
149149
color: #4f46e5;
150150
text-decoration: none;
151151
font-size: 0.9rem;

log/development.log

Lines changed: 243 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1487,3 +1487,246 @@ Processing by PagesController#landing as HTML
14871487
Completed 200 OK in 104ms (Views: 53.3ms | ActiveRecord: 0.0ms (0 queries, 0 cached) | GC: 9.8ms)
14881488

14891489

1490+
ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC /*application='Learnflows'*/
1491+
Assignment Load (8.9ms) SELECT "assignments".* FROM "assignments" /*application='Learnflows'*/
1492+
Conversion Load (0.2ms) SELECT "conversions".* FROM "conversions" WHERE "conversions"."assignment_id" = 2 LIMIT 1 /*application='Learnflows'*/
1493+
Started GET "/" for ::1 at 2026-05-17 21:42:22 +0300
1494+
ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC /*application='Learnflows'*/
1495+
Processing by PagesController#landing as HTML
1496+
TRANSACTION (0.1ms) BEGIN immediate TRANSACTION /*action='landing',application='Learnflows',controller='pages'*/
1497+
↳ app/controllers/pages_controller.rb:25:in `landing'
1498+
Assignment Create (2.4ms) INSERT INTO "assignments" ("visitor_token", "variant", "created_at", "updated_at") VALUES ('b6453418f9297672', 'treatment', '2026-05-17 18:42:23.129649', '2026-05-17 18:42:23.129649') RETURNING "id" /*action='landing',application='Learnflows',controller='pages'*/
1499+
↳ app/controllers/pages_controller.rb:25:in `landing'
1500+
TRANSACTION (10.7ms) COMMIT TRANSACTION /*action='landing',application='Learnflows',controller='pages'*/
1501+
↳ app/controllers/pages_controller.rb:25:in `landing'
1502+
Rendering layout layouts/application.html.erb
1503+
Rendering pages/landing.html.erb within layouts/application
1504+
Rendered pages/landing.html.erb within layouts/application (Duration: 1.4ms | GC: 0.0ms)
1505+
Rendered layout layouts/application.html.erb (Duration: 34.2ms | GC: 1.3ms)
1506+
Completed 200 OK in 204ms (Views: 49.0ms | ActiveRecord: 17.2ms (1 query, 0 cached) | GC: 52.0ms)
1507+
1508+
1509+
Started GET "/signup" for ::1 at 2026-05-17 21:42:51 +0300
1510+
Processing by PagesController#signup as HTML
1511+
Rendering layout layouts/application.html.erb
1512+
Rendering pages/signup.html.erb within layouts/application
1513+
Rendered pages/signup.html.erb within layouts/application (Duration: 35.6ms | GC: 1.2ms)
1514+
Rendered layout layouts/application.html.erb (Duration: 37.1ms | GC: 1.2ms)
1515+
Completed 200 OK in 41ms (Views: 38.1ms | ActiveRecord: 0.0ms (0 queries, 0 cached) | GC: 1.6ms)
1516+
1517+
1518+
Started POST "/signup" for ::1 at 2026-05-17 21:42:54 +0300
1519+
Processing by PagesController#signup_submit as TURBO_STREAM
1520+
Parameters: {"authenticity_token"=>"[FILTERED]", "name"=>"", "email"=>"[FILTERED]", "commit"=>"Create My Account"}
1521+
Assignment Load (0.3ms) SELECT "assignments".* FROM "assignments" WHERE "assignments"."visitor_token" = 'b6453418f9297672' LIMIT 1 /*action='signup_submit',application='Learnflows',controller='pages'*/
1522+
↳ app/controllers/pages_controller.rb:42:in `signup_submit'
1523+
Conversion Load (0.1ms) SELECT "conversions".* FROM "conversions" WHERE "conversions"."assignment_id" = 3 LIMIT 1 /*action='signup_submit',application='Learnflows',controller='pages'*/
1524+
↳ app/controllers/pages_controller.rb:44:in `signup_submit'
1525+
TRANSACTION (0.1ms) BEGIN immediate TRANSACTION /*action='signup_submit',application='Learnflows',controller='pages'*/
1526+
↳ app/controllers/pages_controller.rb:45:in `signup_submit'
1527+
Conversion Create (1.9ms) INSERT INTO "conversions" ("assignment_id", "created_at", "updated_at") VALUES (3, '2026-05-17 18:42:54.149273', '2026-05-17 18:42:54.149273') RETURNING "id" /*action='signup_submit',application='Learnflows',controller='pages'*/
1528+
↳ app/controllers/pages_controller.rb:45:in `signup_submit'
1529+
TRANSACTION (0.6ms) COMMIT TRANSACTION /*action='signup_submit',application='Learnflows',controller='pages'*/
1530+
↳ app/controllers/pages_controller.rb:45:in `signup_submit'
1531+
Redirected to http://[::1]:3000/thankyou
1532+
↳ app/controllers/pages_controller.rb:49:in `signup_submit'
1533+
Completed 302 Found in 44ms (ActiveRecord: 3.6ms (3 queries, 0 cached) | GC: 0.0ms)
1534+
1535+
1536+
Started GET "/thankyou" for ::1 at 2026-05-17 21:42:54 +0300
1537+
Processing by PagesController#thankyou as TURBO_STREAM
1538+
Rendering layout layouts/application.html.erb
1539+
Rendering pages/thankyou.html.erb within layouts/application
1540+
Rendered pages/thankyou.html.erb within layouts/application (Duration: 0.6ms | GC: 0.0ms)
1541+
Rendered layout layouts/application.html.erb (Duration: 3.5ms | GC: 0.0ms)
1542+
Completed 200 OK in 7ms (Views: 4.9ms | ActiveRecord: 0.0ms (0 queries, 0 cached) | GC: 0.0ms)
1543+
1544+
1545+
Started GET "/" for ::1 at 2026-05-17 21:42:52 +0300
1546+
Processing by PagesController#landing as HTML
1547+
Rendering layout layouts/application.html.erb
1548+
Rendering pages/landing.html.erb within layouts/application
1549+
Rendered pages/landing.html.erb within layouts/application (Duration: 0.1ms | GC: 0.0ms)
1550+
Rendered layout layouts/application.html.erb (Duration: 1.1ms | GC: 0.0ms)
1551+
Completed 200 OK in 3ms (Views: 2.0ms | ActiveRecord: 0.0ms (0 queries, 0 cached) | GC: 0.0ms)
1552+
1553+
1554+
Started GET "/signup" for ::1 at 2026-05-17 21:42:53 +0300
1555+
Processing by PagesController#signup as HTML
1556+
Rendering layout layouts/application.html.erb
1557+
Rendering pages/signup.html.erb within layouts/application
1558+
Rendered pages/signup.html.erb within layouts/application (Duration: 1.8ms | GC: 0.0ms)
1559+
Rendered layout layouts/application.html.erb (Duration: 2.6ms | GC: 0.0ms)
1560+
Completed 200 OK in 4ms (Views: 3.1ms | ActiveRecord: 0.0ms (0 queries, 0 cached) | GC: 0.0ms)
1561+
1562+
1563+
Started GET "/signup" for ::1 at 2026-05-17 21:42:56 +0300
1564+
Processing by PagesController#signup as HTML
1565+
Rendering layout layouts/application.html.erb
1566+
Rendering pages/signup.html.erb within layouts/application
1567+
Rendered pages/signup.html.erb within layouts/application (Duration: 3.1ms | GC: 0.0ms)
1568+
Rendered layout layouts/application.html.erb (Duration: 8.6ms | GC: 0.0ms)
1569+
Completed 200 OK in 11ms (Views: 9.5ms | ActiveRecord: 0.0ms (0 queries, 0 cached) | GC: 0.0ms)
1570+
1571+
1572+
Started GET "/signup" for ::1 at 2026-05-17 21:43:01 +0300
1573+
Processing by PagesController#signup as HTML
1574+
Rendering layout layouts/application.html.erb
1575+
Rendering pages/signup.html.erb within layouts/application
1576+
Rendered pages/signup.html.erb within layouts/application (Duration: 3.9ms | GC: 0.0ms)
1577+
Rendered layout layouts/application.html.erb (Duration: 6.1ms | GC: 0.0ms)
1578+
Completed 200 OK in 9ms (Views: 7.5ms | ActiveRecord: 0.0ms (0 queries, 0 cached) | GC: 0.0ms)
1579+
1580+
1581+
Started GET "/signup" for ::1 at 2026-05-17 21:43:04 +0300
1582+
Processing by PagesController#signup as HTML
1583+
Rendering layout layouts/application.html.erb
1584+
Rendering pages/signup.html.erb within layouts/application
1585+
Rendered pages/signup.html.erb within layouts/application (Duration: 2.0ms | GC: 0.0ms)
1586+
Rendered layout layouts/application.html.erb (Duration: 3.4ms | GC: 0.0ms)
1587+
Completed 200 OK in 5ms (Views: 4.1ms | ActiveRecord: 0.0ms (0 queries, 0 cached) | GC: 0.0ms)
1588+
1589+
1590+
Started GET "/signup" for ::1 at 2026-05-17 21:43:06 +0300
1591+
Processing by PagesController#signup as HTML
1592+
Rendering layout layouts/application.html.erb
1593+
Rendering pages/signup.html.erb within layouts/application
1594+
Rendered pages/signup.html.erb within layouts/application (Duration: 5.5ms | GC: 0.0ms)
1595+
Rendered layout layouts/application.html.erb (Duration: 7.6ms | GC: 0.0ms)
1596+
Completed 200 OK in 12ms (Views: 9.1ms | ActiveRecord: 0.0ms (0 queries, 0 cached) | GC: 0.0ms)
1597+
1598+
1599+
Started POST "/signup" for ::1 at 2026-05-17 21:43:09 +0300
1600+
Processing by PagesController#signup_submit as TURBO_STREAM
1601+
Parameters: {"authenticity_token"=>"[FILTERED]", "name"=>"", "email"=>"[FILTERED]", "commit"=>"Create My Account"}
1602+
Assignment Load (0.4ms) SELECT "assignments".* FROM "assignments" WHERE "assignments"."visitor_token" = 'b6453418f9297672' LIMIT 1 /*action='signup_submit',application='Learnflows',controller='pages'*/
1603+
↳ app/controllers/pages_controller.rb:42:in `signup_submit'
1604+
Conversion Load (0.1ms) SELECT "conversions".* FROM "conversions" WHERE "conversions"."assignment_id" = 3 LIMIT 1 /*action='signup_submit',application='Learnflows',controller='pages'*/
1605+
↳ app/controllers/pages_controller.rb:44:in `signup_submit'
1606+
Redirected to http://[::1]:3000/thankyou
1607+
↳ app/controllers/pages_controller.rb:49:in `signup_submit'
1608+
Completed 302 Found in 6ms (ActiveRecord: 0.5ms (2 queries, 0 cached) | GC: 0.0ms)
1609+
1610+
1611+
Started GET "/thankyou" for ::1 at 2026-05-17 21:43:09 +0300
1612+
Processing by PagesController#thankyou as TURBO_STREAM
1613+
Rendering layout layouts/application.html.erb
1614+
Rendering pages/thankyou.html.erb within layouts/application
1615+
Rendered pages/thankyou.html.erb within layouts/application (Duration: 0.1ms | GC: 0.0ms)
1616+
Rendered layout layouts/application.html.erb (Duration: 2.2ms | GC: 0.0ms)
1617+
Completed 200 OK in 4ms (Views: 3.2ms | ActiveRecord: 0.0ms (0 queries, 0 cached) | GC: 0.0ms)
1618+
1619+
1620+
Started GET "/" for ::1 at 2026-05-17 21:43:10 +0300
1621+
Processing by PagesController#landing as HTML
1622+
Rendering layout layouts/application.html.erb
1623+
Rendering pages/landing.html.erb within layouts/application
1624+
Rendered pages/landing.html.erb within layouts/application (Duration: 0.1ms | GC: 0.0ms)
1625+
Rendered layout layouts/application.html.erb (Duration: 1.0ms | GC: 0.0ms)
1626+
Completed 200 OK in 3ms (Views: 1.9ms | ActiveRecord: 0.0ms (0 queries, 0 cached) | GC: 0.0ms)
1627+
1628+
1629+
Started GET "/signup" for ::1 at 2026-05-17 21:43:11 +0300
1630+
Processing by PagesController#signup as HTML
1631+
Rendering layout layouts/application.html.erb
1632+
Rendering pages/signup.html.erb within layouts/application
1633+
Rendered pages/signup.html.erb within layouts/application (Duration: 1.6ms | GC: 0.0ms)
1634+
Rendered layout layouts/application.html.erb (Duration: 2.7ms | GC: 0.0ms)
1635+
Completed 200 OK in 4ms (Views: 3.2ms | ActiveRecord: 0.0ms (0 queries, 0 cached) | GC: 0.0ms)
1636+
1637+
1638+
Started GET "/" for ::1 at 2026-05-17 22:19:00 +0300
1639+
ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC /*application='Learnflows'*/
1640+
Processing by PagesController#landing as HTML
1641+
Rendering layout layouts/application.html.erb
1642+
Rendering pages/landing.html.erb within layouts/application
1643+
Rendered pages/landing.html.erb within layouts/application (Duration: 11.1ms | GC: 7.3ms)
1644+
Rendered layout layouts/application.html.erb (Duration: 69.9ms | GC: 37.7ms)
1645+
Completed 200 OK in 153ms (Views: 87.0ms | ActiveRecord: 0.0ms (0 queries, 0 cached) | GC: 67.8ms)
1646+
1647+
1648+
Started GET "/signup" for ::1 at 2026-05-17 22:19:03 +0300
1649+
Processing by PagesController#signup as HTML
1650+
Rendering layout layouts/application.html.erb
1651+
Rendering pages/signup.html.erb within layouts/application
1652+
Rendered pages/signup.html.erb within layouts/application (Duration: 6.3ms | GC: 0.4ms)
1653+
Rendered layout layouts/application.html.erb (Duration: 7.6ms | GC: 0.4ms)
1654+
Completed 200 OK in 10ms (Views: 8.3ms | ActiveRecord: 0.0ms (0 queries, 0 cached) | GC: 0.4ms)
1655+
1656+
1657+
Started GET "/signup" for ::1 at 2026-05-17 22:19:04 +0300
1658+
Processing by PagesController#signup as HTML
1659+
Rendering layout layouts/application.html.erb
1660+
Rendering pages/signup.html.erb within layouts/application
1661+
Rendered pages/signup.html.erb within layouts/application (Duration: 1.2ms | GC: 0.0ms)
1662+
Rendered layout layouts/application.html.erb (Duration: 2.0ms | GC: 0.0ms)
1663+
Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.0ms (0 queries, 0 cached) | GC: 0.1ms)
1664+
1665+
1666+
Started POST "/signup" for ::1 at 2026-05-17 22:19:07 +0300
1667+
Processing by PagesController#signup_submit as TURBO_STREAM
1668+
Parameters: {"authenticity_token"=>"[FILTERED]", "name"=>"", "email"=>"[FILTERED]", "commit"=>"Create My Account"}
1669+
Assignment Load (0.3ms) SELECT "assignments".* FROM "assignments" WHERE "assignments"."visitor_token" = 'b6453418f9297672' LIMIT 1 /*action='signup_submit',application='Learnflows',controller='pages'*/
1670+
↳ app/controllers/pages_controller.rb:42:in `signup_submit'
1671+
Conversion Load (0.2ms) SELECT "conversions".* FROM "conversions" WHERE "conversions"."assignment_id" = 3 LIMIT 1 /*action='signup_submit',application='Learnflows',controller='pages'*/
1672+
↳ app/controllers/pages_controller.rb:44:in `signup_submit'
1673+
Redirected to http://[::1]:3000/thankyou
1674+
↳ app/controllers/pages_controller.rb:49:in `signup_submit'
1675+
Completed 302 Found in 74ms (ActiveRecord: 4.3ms (2 queries, 0 cached) | GC: 2.0ms)
1676+
1677+
1678+
Started GET "/thankyou" for ::1 at 2026-05-17 22:19:07 +0300
1679+
Processing by PagesController#thankyou as TURBO_STREAM
1680+
Rendering layout layouts/application.html.erb
1681+
Rendering pages/thankyou.html.erb within layouts/application
1682+
Rendered pages/thankyou.html.erb within layouts/application (Duration: 0.5ms | GC: 0.0ms)
1683+
Rendered layout layouts/application.html.erb (Duration: 2.6ms | GC: 0.0ms)
1684+
Completed 200 OK in 5ms (Views: 3.5ms | ActiveRecord: 0.0ms (0 queries, 0 cached) | GC: 0.0ms)
1685+
1686+
1687+
Started GET "/" for ::1 at 2026-05-17 22:19:08 +0300
1688+
Processing by PagesController#landing as HTML
1689+
Rendering layout layouts/application.html.erb
1690+
Rendering pages/landing.html.erb within layouts/application
1691+
Rendered pages/landing.html.erb within layouts/application (Duration: 0.1ms | GC: 0.0ms)
1692+
Rendered layout layouts/application.html.erb (Duration: 0.9ms | GC: 0.0ms)
1693+
Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms (0 queries, 0 cached) | GC: 0.0ms)
1694+
1695+
1696+
Started GET "/signup" for ::1 at 2026-05-17 22:19:09 +0300
1697+
Processing by PagesController#signup as HTML
1698+
Rendering layout layouts/application.html.erb
1699+
Rendering pages/signup.html.erb within layouts/application
1700+
Rendered pages/signup.html.erb within layouts/application (Duration: 1.3ms | GC: 0.0ms)
1701+
Rendered layout layouts/application.html.erb (Duration: 2.1ms | GC: 0.0ms)
1702+
Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.0ms (0 queries, 0 cached) | GC: 0.0ms)
1703+
1704+
1705+
Started GET "/courses/2" for ::1 at 2026-05-17 22:19:12 +0300
1706+
Processing by PagesController#course as HTML
1707+
Parameters: {"id"=>"2"}
1708+
Rendering layout layouts/application.html.erb
1709+
Rendering pages/course.html.erb within layouts/application
1710+
Rendered pages/course.html.erb within layouts/application (Duration: 0.5ms | GC: 0.0ms)
1711+
Rendered layout layouts/application.html.erb (Duration: 1.8ms | GC: 0.0ms)
1712+
Completed 200 OK in 4ms (Views: 2.5ms | ActiveRecord: 0.0ms (0 queries, 0 cached) | GC: 0.0ms)
1713+
1714+
1715+
Started GET "/signup" for ::1 at 2026-05-17 22:19:15 +0300
1716+
Processing by PagesController#signup as HTML
1717+
Rendering layout layouts/application.html.erb
1718+
Rendering pages/signup.html.erb within layouts/application
1719+
Rendered pages/signup.html.erb within layouts/application (Duration: 1.6ms | GC: 0.0ms)
1720+
Rendered layout layouts/application.html.erb (Duration: 2.7ms | GC: 0.0ms)
1721+
Completed 200 OK in 4ms (Views: 3.3ms | ActiveRecord: 0.0ms (0 queries, 0 cached) | GC: 0.0ms)
1722+
1723+
1724+
Started GET "/signup" for ::1 at 2026-05-17 22:19:17 +0300
1725+
Processing by PagesController#signup as HTML
1726+
Rendering layout layouts/application.html.erb
1727+
Rendering pages/signup.html.erb within layouts/application
1728+
Rendered pages/signup.html.erb within layouts/application (Duration: 1.7ms | GC: 0.0ms)
1729+
Rendered layout layouts/application.html.erb (Duration: 2.7ms | GC: 0.0ms)
1730+
Completed 200 OK in 4ms (Views: 3.4ms | ActiveRecord: 0.0ms (0 queries, 0 cached) | GC: 0.0ms)
1731+
1732+

storage/development.sqlite3

0 Bytes
Binary file not shown.

storage/development.sqlite3-shm

32 KB
Binary file not shown.

storage/development.sqlite3-wal

Whitespace-only changes.

tmp/pids/server.pid

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
12922
1+
37637

0 commit comments

Comments
 (0)