WARNING: This page is about a different car, the 2021 Hyundai Kona. However, it is still accessible from the selected car via links, so may be relevant.
Turn ignition switch OFF and disconnect the negative (-) battery cable.
Remove the engine cover.
Disconnect the ignition coil connector (A).
Courtesy of HYUNDAI MOTOR AMERICA
NOTE:
When removing the ignition coil connector, pull the lock pin (A) and push the clip (B).
Courtesy of HYUNDAI MOTOR AMERICA
Remove the ignition coil (A) after loosening the mounting bolts.